aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-11-28 08:37:46 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-11-28 08:37:46 +0000
commit8e027f6474bc0f3e48cc2383b5fd2079cb284841 (patch)
treedc8369bde2ab84244262b0409390cb8724591bd8 /coreutils
parent6ead3abd5549b9342245820fbac6dd32647bdcb1 (diff)
downloadbusybox-8e027f6474bc0f3e48cc2383b5fd2079cb284841.tar.gz
Use printf instead of fprintf(stdout
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)
break;
case LIST_BLOCKS:
#ifdef CONFIG_FEATURE_HUMAN_READABLE
- fprintf(stdout, "%6s ",
- make_human_readable_str(dn->dstat.st_blocks >> 1,
- KILOBYTE,
- (ls_disp_hr ==
- TRUE) ? 0 : KILOBYTE));
+ printf("%6s ", make_human_readable_str(dn->dstat.st_blocks >> 1,
+ KILOBYTE, (ls_disp_hr == TRUE) ? 0 : KILOBYTE));
#else
#if _FILE_OFFSET_BITS == 64
printf("%4lld ", dn->dstat.st_blocks >> 1);
@@ -716,8 +713,7 @@ static int list_single(struct dnode *dn)
} else {
#ifdef CONFIG_FEATURE_HUMAN_READABLE
if (ls_disp_hr == TRUE) {
- fprintf(stdout, "%8s ",
- make_human_readable_str(dn->dstat.st_size, 1, 0));
+ printf("%8s ", make_human_readable_str(dn->dstat.st_size, 1, 0));
} else
#endif
{