1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 18:19:00 +02:00

(bsd_sum_file, sysv_sym_file):

Use primitives from inttostr.h, not human.h, to print large numbers simply.
This commit is contained in:
Jim Meyering
2002-11-05 20:33:35 +00:00
parent 371e50492e
commit 49cfd5a52c
+2 -2
View File
@@ -133,7 +133,7 @@ bsd_sum_file (const char *file, int print_name)
}
printf ("%05d %5s", checksum,
human_readable_inexact (total_bytes, hbuf, 1, 1024, human_ceiling));
human_readable (total_bytes, hbuf, human_ceiling, 1, 1024));
if (print_name > 1)
printf (" %s", file);
putchar ('\n');
@@ -207,7 +207,7 @@ sysv_sum_file (const char *file, int print_name)
checksum = (r & 0xffff) + (r >> 16);
printf ("%d %s", checksum,
human_readable_inexact (total_bytes, hbuf, 1, 512, human_ceiling));
human_readable (total_bytes, hbuf, human_ceiling, 1, 512));
if (print_name)
printf (" %s", file);
putchar ('\n');