summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-01-01 16:56:03 +0100
committerJim Meyering <meyering@redhat.com>2010-01-01 16:56:03 +0100
commit84db964925680c912c601f616d4ab07f7bc19c3c (patch)
treeae7f269d0976c9595ebbe48d00a0df2cfecc3117 /src
parent49c5b690cb6abb3cc7420c0099b92bcc674502a1 (diff)
downloadcoreutils-84db964925680c912c601f616d4ab07f7bc19c3c.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/df.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/df.c b/src/df.c
index 0821fe126..b8628791e 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? */