From: David Goulet Date: Mon, 25 Mar 2013 17:31:51 +0000 (-0400) Subject: Fix: lttng UI failed to report error 19 X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=8f3f773f82cf4ce088d7bee098b549b5567d77f8 Fix: lttng UI failed to report error 19 Fixes #437 Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/calibrate.c b/src/bin/lttng/commands/calibrate.c index 600765fcc..9c524bd12 100644 --- a/src/bin/lttng/commands/calibrate.c +++ b/src/bin/lttng/commands/calibrate.c @@ -151,6 +151,7 @@ static int calibrate_lttng(void) calibrate.type = LTTNG_CALIBRATE_FUNCTION; ret = lttng_calibrate(handle, &calibrate); if (ret < 0) { + ERR("%s", lttng_strerror(ret)); goto error; } MSG("%s calibration done", opt_kernel ? "Kernel" : "UST"); diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 5429df4e2..6677e4c4e 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -593,6 +593,7 @@ static int list_sessions(const char *session_name) DBG("Session count %d", count); if (count < 0) { ret = count; + ERR("%s", lttng_strerror(ret)); goto error; } else if (count == 0) { MSG("Currently no available tracing session");