numfmt: correct a printf format
authorPádraig Brady <P@draigBrady.com>
Tue, 5 Feb 2013 15:37:47 +0000 (15:37 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 5 Feb 2013 15:49:42 +0000 (15:49 +0000)
Prompted by the continuous integration build failure at:
http://hydra.nixos.org/build/4010493

* src/numfmt.c (parse_format_string): Correct both sign and size of
a printf format, which only gives a warning on 32 bit builds.

src/numfmt.c

index 5929dba..cccd1d1 100644 (file)
@@ -1014,7 +1014,7 @@ parse_format_string (char const *fmt)
 
   if (dev_debug)
     error (0, 0, _("format String:\n  input: %s\n  grouping: %s\n"
-                   "  padding width: %zu\n  alignment: %s\n"
+                   "  padding width: %ld\n  alignment: %s\n"
                    "  prefix: '%s'\n  suffix: '%s'\n"),
            quote (fmt), (grouping) ? "yes" : "no",
            padding_width,