From: David Sterba Date: Fri, 19 Aug 2016 13:45:04 +0000 (+0200) Subject: btrfs-progs: switch ternary op to an if in cmd_subvol_show X-Git-Tag: upstream/4.16.1~1396 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49184a737b39239c2fc36857075d470a8d4e8d1e;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: switch ternary op to an if in cmd_subvol_show Signed-off-by: David Sterba --- diff --git a/cmds-subvolume.c b/cmds-subvolume.c index be2d41e..e7ef67d 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; }