Fix: lttng UI failed to report error 19
authorDavid Goulet <dgoulet@efficios.com>
Mon, 25 Mar 2013 17:31:51 +0000 (13:31 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 25 Mar 2013 17:33:54 +0000 (13:33 -0400)
Fixes #437

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/calibrate.c
src/bin/lttng/commands/list.c

index 600765fcc2d79c312adeee2e2e9e08af57bda8dc..9c524bd12509286b91331153757c1313fe6c8d3b 100644 (file)
@@ -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");
index 5429df4e2eacc9dbdc1c1b1186999046b3732309..6677e4c4e1401767821cf62942b1ce146f3683c4 100644 (file)
@@ -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");
This page took 0.027102 seconds and 5 git commands to generate.