diff options
author | Jim Meyering <jim@meyering.net> | 2002-11-05 20:33:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-11-05 20:33:35 +0000 |
commit | 49cfd5a52c65b5d2cdf163c7f190eff6cefcecb5 (patch) | |
tree | efbf3b053cb2e7c534699d9a29a0137b2d2834ec /src | |
parent | 371e50492eea5206d4b4b170e2aae812ac4bfc28 (diff) | |
download | coreutils-49cfd5a52c65b5d2cdf163c7f190eff6cefcecb5.tar.xz |
(bsd_sum_file, sysv_sym_file):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
Diffstat (limited to 'src')
-rw-r--r-- | src/sum.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'); |