Use printf instead of fprintf(stdout

This commit is contained in:
Glenn L McGrath 2002-11-28 08:37:46 +00:00
parent 6ead3abd55
commit 8e027f6474

View File

@ -673,11 +673,8 @@ static int list_single(struct dnode *dn)
break; break;
case LIST_BLOCKS: case LIST_BLOCKS:
#ifdef CONFIG_FEATURE_HUMAN_READABLE #ifdef CONFIG_FEATURE_HUMAN_READABLE
fprintf(stdout, "%6s ", printf("%6s ", make_human_readable_str(dn->dstat.st_blocks >> 1,
make_human_readable_str(dn->dstat.st_blocks >> 1, KILOBYTE, (ls_disp_hr == TRUE) ? 0 : KILOBYTE));
KILOBYTE,
(ls_disp_hr ==
TRUE) ? 0 : KILOBYTE));
#else #else
#if _FILE_OFFSET_BITS == 64 #if _FILE_OFFSET_BITS == 64
printf("%4lld ", dn->dstat.st_blocks >> 1); printf("%4lld ", dn->dstat.st_blocks >> 1);
@ -716,8 +713,7 @@ static int list_single(struct dnode *dn)
} else { } else {
#ifdef CONFIG_FEATURE_HUMAN_READABLE #ifdef CONFIG_FEATURE_HUMAN_READABLE
if (ls_disp_hr == TRUE) { if (ls_disp_hr == TRUE) {
fprintf(stdout, "%8s ", printf("%8s ", make_human_readable_str(dn->dstat.st_size, 1, 0));
make_human_readable_str(dn->dstat.st_size, 1, 0));
} else } else
#endif #endif
{ {