summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShawn Landden <shawnlandden@gmail.com>2013-08-22 21:17:16 -0700
committerAnthony G. Basile <blueness@gentoo.org>2013-09-10 06:15:00 -0400
commit9fd96823aee4430be13b3b3275a5e57cdc26def8 (patch)
tree8a428488bcee791c8b0075a8c9eb81b553f8f07e /src
parenta5900164d568d09d1a9e88e5b6a2951779e71e9e (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')
-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 b421e42363..15839b6f58 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");