summaryrefslogtreecommitdiffstats
path: root/sys-utils/switch_root.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/switch_root.c')
-rw-r--r--sys-utils/switch_root.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/switch_root.c b/sys-utils/switch_root.c
index 4ff3bff8f..bcd801d5f 100644
--- a/sys-utils/switch_root.c
+++ b/sys-utils/switch_root.c
@@ -62,7 +62,7 @@ static int recursiveRemove(int fd)
dfd = dirfd(dir);
if (fstat(dfd, &rb)) {
- warn(_("failed to stat directory"));
+ warn(_("stat failed"));
goto done;
}
@@ -85,7 +85,7 @@ static int recursiveRemove(int fd)
struct stat sb;
if (fstatat(dfd, d->d_name, &sb, AT_SYMLINK_NOFOLLOW)) {
- warn(_("failed to stat %s"), d->d_name);
+ warn(_("stat failed %s"), d->d_name);
continue;
}
@@ -125,7 +125,7 @@ static int switchroot(const char *newroot)
struct stat newroot_stat, sb;
if (stat(newroot, &newroot_stat) != 0) {
- warn(_("failed to stat directory %s"), newroot);
+ warn(_("stat failed %s"), newroot);
return -1;
}