aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 344f8ffcb..d2a935d82 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -673,11 +673,8 @@ static int list_single(struct dnode *dn)
673 break; 673 break;
674 case LIST_BLOCKS: 674 case LIST_BLOCKS:
675#ifdef CONFIG_FEATURE_HUMAN_READABLE 675#ifdef CONFIG_FEATURE_HUMAN_READABLE
676 fprintf(stdout, "%6s ", 676 printf("%6s ", make_human_readable_str(dn->dstat.st_blocks >> 1,
677 make_human_readable_str(dn->dstat.st_blocks >> 1, 677 KILOBYTE, (ls_disp_hr == TRUE) ? 0 : KILOBYTE));
678 KILOBYTE,
679 (ls_disp_hr ==
680 TRUE) ? 0 : KILOBYTE));
681#else 678#else
682#if _FILE_OFFSET_BITS == 64 679#if _FILE_OFFSET_BITS == 64
683 printf("%4lld ", dn->dstat.st_blocks >> 1); 680 printf("%4lld ", dn->dstat.st_blocks >> 1);
@@ -716,8 +713,7 @@ static int list_single(struct dnode *dn)
716 } else { 713 } else {
717#ifdef CONFIG_FEATURE_HUMAN_READABLE 714#ifdef CONFIG_FEATURE_HUMAN_READABLE
718 if (ls_disp_hr == TRUE) { 715 if (ls_disp_hr == TRUE) {
719 fprintf(stdout, "%8s ", 716 printf("%8s ", make_human_readable_str(dn->dstat.st_size, 1, 0));
720 make_human_readable_str(dn->dstat.st_size, 1, 0));
721 } else 717 } else
722#endif 718#endif
723 { 719 {