From: Mathieu Desnoyers Date: Mon, 21 Nov 2011 09:10:14 +0000 (-0500) Subject: fix reversed enabled/disabled, active/inactive printout X-Git-Tag: v2.0-pre15~92 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b09f0429fe3d8f7f8811abd05b576a35c25de76a;p=lttng-tools.git fix reversed enabled/disabled, active/inactive printout Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng/commands/list.c b/lttng/commands/list.c index a3d8868b5..bac17b897 100644 --- a/lttng/commands/list.c +++ b/lttng/commands/list.c @@ -113,8 +113,8 @@ static const char *active_string(int value) { switch (value) { - case 0: return " [active]"; - case 1: return " [inactive]"; + case 0: return " [inactive]"; + case 1: return " [active]"; case -1: return ""; default: return NULL; } @@ -124,8 +124,8 @@ static const char *enabled_string(int value) { switch (value) { - case 0: return " [enabled]"; - case 1: return " [disabled]"; + case 0: return " [disabled]"; + case 1: return " [enabled]"; case -1: return ""; default: return NULL; }