summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkswap.c
diff options
context:
space:
mode:
authorBenno Schulenberg2015-01-29 21:21:48 +0100
committerKarel Zak2015-02-02 11:27:10 +0100
commitfc14ceba5e545a0e0f61e7a9fe562c79671258ef (patch)
treed89308fcbb2a9b4d23f64c0ab191c61f0d9aa9d6 /disk-utils/mkswap.c
parentdocs: mention nice(1) in renice(1) manual page (diff)
downloadkernel-qcow2-util-linux-fc14ceba5e545a0e0f61e7a9fe562c79671258ef.tar.gz
kernel-qcow2-util-linux-fc14ceba5e545a0e0f61e7a9fe562c79671258ef.tar.xz
kernel-qcow2-util-linux-fc14ceba5e545a0e0f61e7a9fe562c79671258ef.zip
textual: grammarize and harmonize the stat error message
The message "stat failed %s" seems to say that stat() failed to do something, or failed to pass a test, but of course it means that the statting of something failed. So say so. Also make two very similar messages equal to this one. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'disk-utils/mkswap.c')
-rw-r--r--disk-utils/mkswap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c
index b22c73fff..c7166f731 100644
--- a/disk-utils/mkswap.c
+++ b/disk-utils/mkswap.c
@@ -239,7 +239,7 @@ static void open_device(struct mkswap_control *ctl)
assert(ctl->devname);
if (stat(ctl->devname, &ctl->devstat) < 0)
- err(EXIT_FAILURE, _("stat failed %s"), ctl->devname);
+ err(EXIT_FAILURE, _("stat of %s failed"), ctl->devname);
if (S_ISBLK(ctl->devstat.st_mode))
ctl->fd = open(ctl->devname, O_RDWR | O_EXCL);