summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-27 09:42:27 +0200
committerJim Meyering <meyering@redhat.com>2007-10-27 09:42:27 +0200
commit1f05c616d241da881c7cefd1b91cd5e575e2ed15 (patch)
treee51dccabb94b82053f592a0ea6430c596f99c719 /src
parent2e270515f72d913659c13d421c2083e0a414f727 (diff)
downloadcoreutils-1f05c616d241da881c7cefd1b91cd5e575e2ed15.tar.xz
Adjust format string so msgfmt doesn't object.
* src/df.c (main): Use "%s%s" (not %smsg) to print "msg" with or without a "Warning: " prefix. Reported by Clytie Siddall.
Diffstat (limited to 'src')
-rw-r--r--src/df.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/df.c b/src/df.c
index 94cf330b5..f0fdcd70c 100644
--- a/src/df.c
+++ b/src/df.c
@@ -938,10 +938,10 @@ main (int argc, char **argv)
/* Couldn't read the table of mounted file systems.
Fail if df was invoked with no file name arguments;
Otherwise, merely give a warning and proceed. */
+ int status = (optind < argc ? 0 : EXIT_FAILURE);
const char *warning = (optind < argc ? _("Warning: ") : "");
- int status = (optind < argc ? 0 : EXIT_FAILURE);
- error (status, errno,
- _("%scannot read table of mounted file systems"), warning);
+ error (status, errno, "%s%s", warning,
+ _("cannot read table of mounted file systems"));
}
if (require_sync)