From: Jim Meyering Date: Fri, 1 Jan 2010 15:56:03 +0000 (+0100) Subject: df: use fputs in place of printf in a few more places X-Git-Tag: v8.3~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84db964925680c912c601f616d4ab07f7bc19c3c;p=thirdparty%2Fcoreutils.git df: use fputs in place of printf in a few more places * src/df.c (print_header): Use fputs rather than printf in more places. Suggested by Eric Blake. --- diff --git a/src/df.c b/src/df.c index 0821fe126e..b8628791e4 100644 --- a/src/df.c +++ b/src/df.c @@ -161,13 +161,13 @@ print_header (void) your translation has the same length as the original. Also, each column name translation should end at the same column as the corresponding original. */ - printf (_(" Inodes IUsed IFree IUse%%")); + fputs (_(" Inodes IUsed IFree IUse%"), stdout); else if (human_output_opts & human_autoscale) { if (human_output_opts & human_base_1024) - printf (_(" Size Used Avail Use%%")); + fputs (_(" Size Used Avail Use%"), stdout); else - printf (_(" Size Used Avail Use%%")); + fputs (_(" Size Used Avail Use%"), stdout); } else if (posix_format) printf (_(" %s-blocks Used Available Capacity"), @@ -205,7 +205,7 @@ print_header (void) human_readable (output_block_size, buf, opts, 1, 1)); } - printf (_(" Mounted on\n")); + fputs (_(" Mounted on\n"), stdout); } /* Is FSTYPE a type of file system that should be listed? */