diff options
Diffstat (limited to 'sys-utils')
-rw-r--r-- | sys-utils/dmesg.c | 2 | ||||
-rw-r--r-- | sys-utils/fsfreeze.c | 2 | ||||
-rw-r--r-- | sys-utils/fstrim.c | 2 | ||||
-rw-r--r-- | sys-utils/swapon.c | 2 | ||||
-rw-r--r-- | sys-utils/switch_root.c | 6 |
5 files changed, 7 insertions, 7 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index 9fc7982a1..2aa904cab 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -361,7 +361,7 @@ static ssize_t read_file_buffer(struct dmesg_control *ctl, if (fd < 0) err(EXIT_FAILURE, _("cannot open: %s"), filename); if (fstat(fd, &st)) - err(EXIT_FAILURE, _("cannot stat: %s"), filename); + err(EXIT_FAILURE, _("stat failed %s"), filename); *buf = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); if (*buf == MAP_FAILED) diff --git a/sys-utils/fsfreeze.c b/sys-utils/fsfreeze.c index 5d1702158..1585abb76 100644 --- a/sys-utils/fsfreeze.c +++ b/sys-utils/fsfreeze.c @@ -104,7 +104,7 @@ int main(int argc, char **argv) err(EXIT_FAILURE, _("%s: open failed"), path); if (fstat(fd, &sb) == -1) { - warn(_("%s: fstat failed"), path); + warn(_("stat failed %s"), path); goto done; } diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c index bb88bb804..d7633b07a 100644 --- a/sys-utils/fstrim.c +++ b/sys-utils/fstrim.c @@ -133,7 +133,7 @@ int main(int argc, char **argv) } if (stat(path, &sb) == -1) - err(EXIT_FAILURE, _("%s: stat failed"), path); + err(EXIT_FAILURE, _("stat failed %s"), path); if (!S_ISDIR(sb.st_mode)) errx(EXIT_FAILURE, _("%s: not a directory"), path); diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 05d025c00..aec7d2e5e 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -443,7 +443,7 @@ static int swapon_checks(const char *special) unsigned long long devsize = 0; if (stat(special, &st) < 0) { - warn(_("%s: stat failed"), special); + warn(_("stat failed %s"), special); goto err; } 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; } |