[BusyBox-cvs] busybox/fileutils ls.c,1.92,1.93

Glenn McGrath bug1 at busybox.net
Thu Nov 28 08:37:49 UTC 2002


Update of /var/cvs/busybox/fileutils
In directory winder:/tmp/cvs-serv21014/fileutils

Modified Files:
	ls.c 
Log Message:
Use printf instead of fprintf(stdout


Index: ls.c
===================================================================
RCS file: /var/cvs/busybox/fileutils/ls.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- ls.c	22 Aug 2002 18:13:54 -0000	1.92
+++ ls.c	28 Nov 2002 08:37:46 -0000	1.93
@@ -673,11 +673,8 @@
 			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 @@
 			} 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
 				{




More information about the busybox-cvs mailing list