From: Jérémie Galarneau Date: Fri, 7 Oct 2016 21:03:26 +0000 (-0400) Subject: Fix: warn when a loaded session can't be set as the default X-Git-Tag: v2.9.0-rc1~2 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=96694f0b10af5b226fd28a3da5dc1c703eee9986 Fix: warn when a loaded session can't be set as the default Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/load.c b/src/bin/lttng/commands/load.c index 630dccd3b..7578fdce0 100644 --- a/src/bin/lttng/commands/load.c +++ b/src/bin/lttng/commands/load.c @@ -286,7 +286,8 @@ int cmd_load(int argc, const char **argv) } else if (session_name) { ret = config_init((char *) session_name); if (ret < 0) { - ret = CMD_WARNING; + WARN("Could not set %s as the default session", + session_name); } MSG("Session %s has been loaded successfully", session_name); } else {