X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-provider.c;h=50f73c6253cf340d90485540ce154dfdafd24d72;hb=fb31eb73d8a4a6d9784ed5c335b7fa3b9684108c;hp=8e065abe3eb0c650b44fa6c507f26831591c119a;hpb=c362addf1c50e1d3202a26ff96738b71b4f9a531;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-provider.c b/liblttng-ust/lttng-context-provider.c index 8e065abe..50f73c62 100644 --- a/liblttng-ust/lttng-context-provider.c +++ b/liblttng-ust/lttng-context-provider.c @@ -21,8 +21,11 @@ */ #define _LGPL_SOURCE +#include +#include #include #include + #include #include "lttng-tracer-core.h" #include "jhash.h" @@ -71,9 +74,9 @@ int lttng_ust_context_provider_register(struct lttng_ust_context_provider *provi lttng_ust_fixup_tls(); /* Provider name starts with "$app.". */ - if (strncmp("$app.", provider->name, strlen("$app.") != 0)) + if (strncmp("$app.", provider->name, strlen("$app.")) != 0) return -EINVAL; - /* Provider name cannot contain a column character. */ + /* Provider name cannot contain a colon character. */ if (strchr(provider->name, ':')) return -EINVAL; if (ust_lock()) {