From 96694f0b10af5b226fd28a3da5dc1c703eee9986 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 7 Oct 2016 17:03:26 -0400 Subject: [PATCH] Fix: warn when a loaded session can't be set as the default MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/bin/lttng/commands/load.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.34.1