From 6a62e071af9c2fcd95db1297b3bedb22f741d996 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 10 Oct 2007 19:12:01 +0000 Subject: [PATCH] update git-svn-id: http://ltt.polymtl.ca/svn@2629 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/tracecontext.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.34.1