From 495bbffb336c5150def4e6fe52c0a5f2f0195a2b Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 21 Jan 2013 11:59:00 -0500 Subject: [PATCH] Fix: UST returns -LTTNG_UST_ERR_NOENT and not -ENOENT On stream creation, it's an UST error code and not the errno one. Signed-off-by: David Goulet --- src/bin/lttng-sessiond/ust-app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 04243b325..c1e7e3935 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -781,7 +781,7 @@ static int create_ust_stream(struct ust_app *app, if (ret < 0) { lttng_fd_put(LTTNG_FD_APPS, 2); /* Indicates that there is no more stream for that channel. */ - if (ret != -ENOENT) { + if (ret != -LTTNG_UST_ERR_NOENT) { ERR("UST create metadata stream failed (ret: %d)", ret); } goto error; @@ -2360,7 +2360,7 @@ int ust_app_start_trace(struct ltt_ust_session *usess, struct ust_app *app) if (ret < 0) { /* Free unused memory after this point. */ free(ustream); - if (ret == -ENOENT) { + if (ret == -LTTNG_UST_ERR_NOENT) { /* Got all streams. Continue normal execution. */ break; } -- 2.34.1