chiark / gitweb /
udev: fix printf(3) type specifier
authorShawn Landden <shawnlandden@gmail.com>
Fri, 23 Aug 2013 04:17:16 +0000 (21:17 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 23 Aug 2013 16:48:14 +0000 (12:48 -0400)
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

index 16348126ee6e88140cec2b48709c8614954cbfa6..f14158b5006306ca03de12b035753b33f8932798 100644 (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,"
 
                                 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");
                                           filename, lineno, linepos - line + 1, tmp);
                                 if (linepos[1] == '#')
                                         log_info("hint: comments can only start at beginning of line");