]> git.lttng.org Git - lttng-tools.git/commitdiff
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 18:45:21 +0000 (14:45 -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 a6ea6b8c9c6c153375bac25c7b390466b830d01d..7006e8e101a7f2080c331ce8f91517762c5cec0e 100644 (file)
@@ -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");
This page took 0.031386 seconds and 4 git commands to generate.