From: David Goulet Date: Mon, 21 Jan 2013 17:02:21 +0000 (-0500) Subject: Fix: UST returns -LTTNG_UST_ERR_NOENT and not -ENOENT X-Git-Tag: v2.1.2~25 X-Git-Url: http://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=ba1bb3dc644f478e212b513d70dc53ed76a74d34 Fix: UST returns -LTTNG_UST_ERR_NOENT and not -ENOENT Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 8fb0fed03..12c8f9224 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -2292,7 +2292,7 @@ int ust_app_start_trace(struct ltt_ust_session *usess, struct ust_app *app) /* Free unused memory and reset FD states. */ free(ustream); lttng_fd_put(LTTNG_FD_APPS, 2); - if (ret == -ENOENT) { + if (ret == -LTTNG_UST_ERR_NOENT) { /* Got all streams. Continue normal execution. */ break; }