diff options
author | Benno Schulenberg | 2015-01-29 21:21:48 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-02 11:27:10 +0100 |
commit | fc14ceba5e545a0e0f61e7a9fe562c79671258ef (patch) | |
tree | d89308fcbb2a9b4d23f64c0ab191c61f0d9aa9d6 /sys-utils/switch_root.c | |
parent | docs: mention nice(1) in renice(1) manual page (diff) | |
download | kernel-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 'sys-utils/switch_root.c')
-rw-r--r-- | sys-utils/switch_root.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/switch_root.c b/sys-utils/switch_root.c index be23fd809..dc55a6d08 100644 --- a/sys-utils/switch_root.c +++ b/sys-utils/switch_root.c @@ -90,7 +90,7 @@ static int recursiveRemove(int fd) struct stat sb; if (fstatat(dfd, d->d_name, &sb, AT_SYMLINK_NOFOLLOW)) { - warn(_("stat failed %s"), d->d_name); + warn(_("stat of %s failed"), d->d_name); continue; } @@ -130,7 +130,7 @@ static int switchroot(const char *newroot) struct stat newroot_stat, sb; if (stat(newroot, &newroot_stat) != 0) { - warn(_("stat failed %s"), newroot); + warn(_("stat of %s failed"), newroot); return -1; } |