From cf30cc82a343802b601f01ae153916887f11eb7b Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 24 Nov 2006 14:53:18 +0000 Subject: header_verbose_list: stop truncating file size in listing --- coreutils/dd.c | 4 ++-- coreutils/ls.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'coreutils') diff --git a/coreutils/dd.c b/coreutils/dd.c index c0df0b75c..96ea32f06 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c @@ -29,8 +29,8 @@ static off_t out_full, out_part, in_full, in_part; static void dd_output_status(int ATTRIBUTE_UNUSED cur_signal) { - fprintf(stderr, "%"OFF_FMT"+%"OFF_FMT" records in\n" - "%"OFF_FMT"+%"OFF_FMT" records out\n", + fprintf(stderr, "%"OFF_FMT"d+%"OFF_FMT"d records in\n" + "%"OFF_FMT"d+%"OFF_FMT"d records out\n", in_full, in_part, out_full, out_part); } diff --git a/coreutils/ls.c b/coreutils/ls.c index 909f4d54e..79e47ee6b 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -574,7 +574,7 @@ static int list_single(struct dnode *dn) column += printf("%7ld ", (long) dn->dstat.st_ino); break; case LIST_BLOCKS: - column += printf("%4"OFF_FMT" ", (off_t) dn->dstat.st_blocks >> 1); + column += printf("%4"OFF_FMT"d ", (off_t) dn->dstat.st_blocks >> 1); break; case LIST_MODEBITS: column += printf("%-10s ", (char *) bb_mode_string(dn->dstat.st_mode)); @@ -604,7 +604,7 @@ static int list_single(struct dnode *dn) column += printf("%9s ", make_human_readable_str(dn->dstat.st_size, 1, 0)); } else { - column += printf("%9"OFF_FMT" ", (off_t) dn->dstat.st_size); + column += printf("%9"OFF_FMT"d ", (off_t) dn->dstat.st_size); } } break; -- cgit v1.2.3