From 49184a737b39239c2fc36857075d470a8d4e8d1e Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 19 Aug 2016 15:45:04 +0200 Subject: btrfs-progs: switch ternary op to an if in cmd_subvol_show Signed-off-by: David Sterba --- cmds-subvolume.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cmds-subvolume.c') 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; } -- cgit v1.2.3