df: unsigned long needs %lu
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 25 Sep 2008 10:41:15 +0000 (10:41 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 25 Sep 2008 10:41:15 +0000 (10:41 -0000)
coreutils/df.c

index fd250230944544468745ef4f326350c8a480c73c..1c7d6cb38eb1736aa702c201f9557c886fc0062d 100644 (file)
@@ -93,7 +93,7 @@ int df_main(int argc, char **argv)
                disp_units_hdr = xasprintf("%s-blocks",
                        make_human_readable_str(df_disp_hr, 0, !!(opt & OPT_POSIX)));
 #else
-               disp_units_hdr = xasprintf("%d-blocks", df_disp_hr);
+               disp_units_hdr = xasprintf("%lu-blocks", df_disp_hr);
 #endif
        }
        printf("Filesystem           %-15sUsed Available %s Mounted on\n",