summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2016-08-26 15:01:10 +0100
committerDimitri John Ledkov <xnox@ubuntu.com>2016-08-26 15:01:10 +0100
commitca0dc13dd212ef8ca19fa6128115fe933b055437 (patch)
tree72ae182f3228d40e5323af2f3dbc6fd6afc9aec8 /cmds-subvolume.c
parentf920a62c2727afb328f967a79bf2e58497007112 (diff)
New upstream release.debian/4.7.1-1
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index be2d41ed..e7ef67d3 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -937,11 +937,13 @@ static int cmd_subvol_show(int argc, char **argv)
goto out;
}
if (ret) {
- ret < 0 ?
+ if (ret < 0) {
error("Failed to get subvol info %s: %s\n",
- fullpath, strerror(-ret)):
+ fullpath, strerror(-ret));
+ } else {
error("Failed to get subvol info %s: %d\n",
- fullpath, ret);
+ fullpath, ret);
+ }
return ret;
}