From fc14ceba5e545a0e0f61e7a9fe562c79671258ef Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 29 Jan 2015 21:21:48 +0100 Subject: 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 --- sys-utils/switch_root.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-utils/switch_root.c') 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; } -- cgit v1.2.3-55-g7522