From: David Goulet Date: Mon, 25 Mar 2013 17:31:51 +0000 (-0400) Subject: Fix: lttng UI failed to report error 19 X-Git-Tag: v2.1.2~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2e17663e4ecd31edfd3303c019d985cd459f28c7;p=lttng-tools.git 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 a6ea6b8c9..7006e8e10 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -588,6 +588,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");