summaryrefslogtreecommitdiff
path: root/src/udev/udev-rules.c
diff options
context:
space:
mode:
authorShawn Landden <shawnlandden@gmail.com>2013-08-22 21:17:16 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-23 12:48:14 -0400
commit7c902b146815a74796bb65d34b27b036d88cba81 (patch)
treed1de4bbdd9a50e277a31fdc6f892503ea45dd565 /src/udev/udev-rules.c
parentf2369103655ccfd830b08cbc01fa776ba91a580d (diff)
udev: fix printf(3) type specifier
src/udev/udev-rules.c: In function 'add_rule': src/udev/udev-rules.c:1078:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'int' [-Wformat=] log_error("invalid key/value pair in file %s on line %u," ^
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r--src/udev/udev-rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 16348126ee..f14158b500 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -1076,7 +1076,7 @@ static int add_rule(struct udev_rules *rules, char *line,
tmp = cescape(buf);
log_error("invalid key/value pair in file %s on line %u,"
- "starting at character %lu ('%s')\n",
+ "starting at character %tu ('%s')\n",
filename, lineno, linepos - line + 1, tmp);
if (linepos[1] == '#')
log_info("hint: comments can only start at beginning of line");