diff --git a/src/df.c b/src/df.c index 42b8f88c1..91db548ec 100644 --- a/src/df.c +++ b/src/df.c @@ -148,13 +148,16 @@ static void print_header (void) { char buf[MAX (LONGEST_HUMAN_READABLE + 1, INT_BUFSIZE_BOUND (uintmax_t))]; + char const *type_header = _(" Type"); printf (_("Filesystem ")); + /* Print the `Type' header if required (--print-type, -T), + or an equivalent number of spaces. */ if (print_type) - printf (_(" Type")); + fputs (type_header, stdout); else - printf (" "); + printf ("%-*s", strlen (type_header), ""); if (inode_format) printf (_(" Inodes IUsed IFree IUse%%"));