X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Ftracecontext.c;h=47a327621b98f5c496cca9d9269bd6542882d7c4;hb=6a62e071af9c2fcd95db1297b3bedb22f741d996;hp=3be1c31ebf45bf8fb6534e5d6abc35e8f7f39518;hpb=4173fa0e5b30faede1db23413e0192e92b419dbf;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/tracecontext.c b/ltt/branches/poly/lttv/lttv/tracecontext.c index 3be1c31e..47a32762 100644 --- a/ltt/branches/poly/lttv/lttv/tracecontext.c +++ b/ltt/branches/poly/lttv/lttv/tracecontext.c @@ -1024,7 +1024,12 @@ skip_marker: } while(info != NULL); /* Error if no new trace hook has been added */ - return (init_array_size == (*trace_hooks)->len); + if (init_array_size == (*trace_hooks)->len) { + g_warning("No marker of name %s has all requested fields", + g_quark_to_string(marker_name)); + return 1; + } + return 0; } void lttv_trace_hook_remove_all(GArray **th)