From: Mathieu Desnoyers Date: Fri, 4 Mar 2011 13:01:50 +0000 (-0500) Subject: Debug message cleanup X-Git-Tag: v1.9.1~429 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3b297856588b77dcd20ad7497ee46ab68c94c4d9;p=lttng-ust.git Debug message cleanup We cannot use the number of pointers - 1 to know the number of markers/tp/tc, because we can have more than one NULL pointer per shared object. Signed-off-by: Mathieu Desnoyers --- diff --git a/libust/marker.c b/libust/marker.c index 788d8769..dc2747f0 100644 --- a/libust/marker.c +++ b/libust/marker.c @@ -1387,8 +1387,7 @@ lib_added: /* FIXME: update just the loaded lib */ lib_update_markers(); - /* markers_count - 1: skip dummy */ - DBG("just registered a markers section from %p and having %d markers", markers_start, markers_count - 1); + DBG("just registered a markers section from %p and having %d markers (minus dummy markers)", markers_start, markers_count); return 0; } diff --git a/libust/trace_event.c b/libust/trace_event.c index 54515ef1..26157e24 100644 --- a/libust/trace_event.c +++ b/libust/trace_event.c @@ -148,7 +148,7 @@ lib_added: pthread_mutex_unlock(&trace_events_mutex); /* trace_events_count - 1: skip dummy */ - DBG("just registered a trace_events section from %p and having %d trace_events", trace_events_start, trace_events_count - 1); + DBG("just registered a trace_events section from %p and having %d trace_events (minus dummy trace_event)", trace_events_start, trace_events_count); return 0; } diff --git a/libust/tracepoint.c b/libust/tracepoint.c index 335ba4f7..f593306a 100644 --- a/libust/tracepoint.c +++ b/libust/tracepoint.c @@ -697,7 +697,7 @@ lib_added: lib_update_tracepoints(); /* tracepoints_count - 1: skip dummy */ - DBG("just registered a tracepoints section from %p and having %d tracepoints", tracepoints_start, tracepoints_count - 1); + DBG("just registered a tracepoints section from %p and having %d tracepoints (minus dummy tracepoints)", tracepoints_start, tracepoints_count); return 0; }