]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
df: use fputs in place of printf in a few more places
authorJim Meyering <meyering@redhat.com>
Fri, 1 Jan 2010 15:56:03 +0000 (16:56 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 1 Jan 2010 15:56:03 +0000 (16:56 +0100)
* src/df.c (print_header): Use fputs rather than printf in more places.
Suggested by Eric Blake.

src/df.c

index 0821fe126e9340665f95340e5ac58d863d176c63..b8628791e46329e0b2e8bcf1fc2891104ad71331 100644 (file)
--- 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?  */