summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-12-08 18:33:30 +0100
committerDavid Sterba <dsterba@suse.com>2016-12-14 15:06:35 +0100
commit9fa02c427d0b12cfe6fe0de29f934f62eefaf228 (patch)
tree15504a1ce5d0141d4296429b10da8a84fbdcd6a2
parentafd1e7b4e33806ccfada64e82112241b4caf763f (diff)
btrfs-progs: dev stats: adjust some error messages
- use commonly used ioctl name spelling - more specific error message after reading device info Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--cmds-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-device.c b/cmds-device.c
index 392e37cb..0b25207e 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -419,7 +419,7 @@ static int cmd_device_stats(int argc, char **argv)
ret = get_fs_info(dev_path, &fi_args, &di_args);
if (ret) {
- error("getting dev info for devstats failed: %s",
+ error("getting device info for %s failed: %s", dev_path,
strerror(-ret));
err = 1;
goto out;
@@ -443,7 +443,7 @@ static int cmd_device_stats(int argc, char **argv)
args.flags = flags;
if (ioctl(fdmnt, BTRFS_IOC_GET_DEV_STATS, &args) < 0) {
- error("DEV_STATS ioctl failed on %s: %s",
+ error("device stats ioctl failed on %s: %s",
path, strerror(errno));
err |= 1;
} else {