From: Mathieu Desnoyers Date: Tue, 6 Nov 2012 18:47:17 +0000 (-0500) Subject: Support new liblttng-ust-ctl error code X-Git-Tag: v2.1.0-rc7~19 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=fb54cdbf2a8ff53e9dc11403a8aca643bbdde9c0;hp=00c8752be51d75fcec3c30302db3d42cd714f02c;p=lttng-tools.git Support new liblttng-ust-ctl error code Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 4cae85d6e..8b1665a06 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -1580,7 +1581,7 @@ int ust_app_list_events(struct lttng_event **events) } while ((ret = ustctl_tracepoint_list_get(app->sock, handle, - &uiter)) != -ENOENT) { + &uiter)) != -LTTNG_UST_ERR_NOENT) { health_code_update(&health_thread_cmd); if (count >= nbmem) { /* In case the realloc fails, we free the memory */ @@ -1658,7 +1659,7 @@ int ust_app_list_event_fields(struct lttng_event_field **fields) } while ((ret = ustctl_tracepoint_field_list_get(app->sock, handle, - &uiter)) != -ENOENT) { + &uiter)) != -LTTNG_UST_ERR_NOENT) { health_code_update(&health_thread_cmd); if (count >= nbmem) { /* In case the realloc fails, we free the memory */