From 9fd96823aee4430be13b3b3275a5e57cdc26def8 Mon Sep 17 00:00:00 2001 From: Shawn Landden Date: Thu, 22 Aug 2013 21:17:16 -0700 Subject: 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," ^ --- src/udev/udev-rules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3-54-g00ecf