From a881057e930058e657a55f0b07ce304bf14d86be Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 13 Sep 2011 12:58:33 -0400 Subject: [PATCH] Fix enable-channel that did not handle correctly lttng domains Signed-off-by: David Goulet --- lttng/commands/enable_channels.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lttng/commands/enable_channels.c b/lttng/commands/enable_channels.c index d8ad2a77b..13511cc86 100644 --- a/lttng/commands/enable_channels.c +++ b/lttng/commands/enable_channels.c @@ -119,6 +119,7 @@ static int enable_channel(char *session_name) dom.attr.pid = opt_pid; DBG("PID %d set to lttng handle", opt_pid); } else { + ERR("Please specify a tracer (--kernel or --userspace)"); ret = CMD_NOT_IMPLEMENTED; goto error; } @@ -127,9 +128,6 @@ static int enable_channel(char *session_name) if (handle == NULL) { ret = -1; goto error; - } else { - ERR("Please specify a tracer (--kernel or --userspace)"); - goto error; } /* Strip channel list (format: chan1,chan2,...) */ -- 2.34.1