From 8f3f773f82cf4ce088d7bee098b549b5567d77f8 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 25 Mar 2013 13:31:51 -0400 Subject: [PATCH] Fix: lttng UI failed to report error 19 Fixes #437 Signed-off-by: David Goulet --- src/bin/lttng/commands/calibrate.c | 1 + src/bin/lttng/commands/list.c | 1 + 2 files changed, 2 insertions(+) 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"); -- 2.34.1