From: David Goulet Date: Tue, 3 Dec 2013 16:35:31 +0000 (-0500) Subject: Fix: bad logical check of error codes X-Git-Tag: v2.2.6~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=151b126bdf534a4ecd32e7b22e6445908b87e04c;p=lttng-tools.git Fix: bad logical check of error codes Fixes #701 Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 9a8a11aca..e81028f0d 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -3062,7 +3062,7 @@ int ust_app_list_events(struct lttng_event **events) /* Handle ustctl error. */ if (ret < 0) { free(tmp_event); - if (ret != -LTTNG_UST_ERR_EXITING || ret != -EPIPE) { + if (ret != -LTTNG_UST_ERR_EXITING && ret != -EPIPE) { ERR("UST app tp list get failed for app %d with ret %d", app->sock, ret); } else { @@ -3162,7 +3162,7 @@ int ust_app_list_event_fields(struct lttng_event_field **fields) /* Handle ustctl error. */ if (ret < 0) { free(tmp_event); - if (ret != -LTTNG_UST_ERR_EXITING || ret != -EPIPE) { + if (ret != -LTTNG_UST_ERR_EXITING && ret != -EPIPE) { ERR("UST app tp list field failed for app %d with ret %d", app->sock, ret); } else {