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,"
                                 ^
This commit is contained in:
Shawn Landden
2013-08-23 12:48:14 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent f236910365
commit 7c902b1468
+1 -1
View File
@@ -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");