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.7.1~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ab87d60a4e97571d947f42b45d76f4682e0f8a89;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 4afb21385..783ad90bd 100644 --- a/src/bin/lttng-sessiond/trace-ust.c +++ b/src/bin/lttng-sessiond/trace-ust.c @@ -476,7 +476,6 @@ int trace_ust_context_type_event_to_ust(enum lttng_event_context_type type) } break; default: - ERR("Invalid UST context"); utype = -1; break; } @@ -536,6 +535,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; }