From: Jérémie Galarneau Date: Thu, 19 Nov 2015 17:07:56 +0000 (-0500) Subject: Fix: Don't spam session daemon logs on invalid UST context X-Git-Tag: v2.8.0-rc1~209 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1cf992b8ff3eb5bf79e0c209f5e50f16b8d220d9;p=lttng-tools.git Fix: Don't spam session daemon logs on invalid UST context Fixes #976 Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/trace-ust.c b/src/bin/lttng-sessiond/trace-ust.c index 1ddd597cf..4d39e2133 100644 --- a/src/bin/lttng-sessiond/trace-ust.c +++ b/src/bin/lttng-sessiond/trace-ust.c @@ -547,7 +547,6 @@ int trace_ust_context_type_event_to_ust(enum lttng_event_context_type type) } break; default: - ERR("Invalid UST context"); utype = -1; break; } @@ -607,6 +606,7 @@ struct ltt_ust_context *trace_ust_create_context( utype = trace_ust_context_type_event_to_ust(ctx->ctx); if (utype < 0) { + ERR("Invalid UST context"); return NULL; }