From: David Goulet Date: Tue, 13 Sep 2011 16:58:33 +0000 (-0400) Subject: Fix enable-channel that did not handle correctly lttng domains X-Git-Tag: v2.0-pre13~7 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=a881057e930058e657a55f0b07ce304bf14d86be;hp=b3c750d2ffae77322752a5b4f43bd4ddae3dfea6 Fix enable-channel that did not handle correctly lttng domains Signed-off-by: David Goulet --- 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,...) */