From ba1bb3dc644f478e212b513d70dc53ed76a74d34 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 21 Jan 2013 12:02:21 -0500 Subject: [PATCH] Fix: UST returns -LTTNG_UST_ERR_NOENT and not -ENOENT Signed-off-by: David Goulet --- src/bin/lttng-sessiond/ust-app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1