From: Pierre-Marc Fournier Date: Wed, 22 Jul 2009 21:41:03 +0000 (-0400) Subject: marker: remove printf and add debug msg X-Git-Tag: v1.9.1~948 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4d65ee62f53c9e3b7c7b56d2067ab347f3ce90aa;p=lttng-ust.git marker: remove printf and add debug msg --- diff --git a/libust/marker.c b/libust/marker.c index 39da7f40..33c500af 100644 --- a/libust/marker.c +++ b/libust/marker.c @@ -1532,7 +1532,7 @@ void __attribute__((constructor)) init_markers(void) { if(!initialized) { marker_register_lib(__start___markers, (((long)__stop___markers)-((long)__start___markers))/sizeof(struct marker)); - printf("markers_start: %p, markers_stop: %p\n", __start___markers, __stop___markers); + DBG("markers_start: %p, markers_stop: %p\n", __start___markers, __stop___markers); initialized = 1; } } diff --git a/libust/marker.h b/libust/marker.h index 5f375b87..146409c5 100644 --- a/libust/marker.h +++ b/libust/marker.h @@ -31,6 +31,7 @@ #include "kernelcompat.h" #include "compiler.h" #include +#include "localerr.h" //ust// struct module; //ust// struct task_struct; @@ -303,6 +304,7 @@ extern struct marker __stop___markers[] __attribute__((visibility("hidden"))); \ static void __attribute__((constructor)) __markers__init(void) \ { \ + DBG("next registration in "__FILE__"\n");\ marker_register_lib(__start___markers, (((long)__stop___markers)-((long)__start___markers))/sizeof(struct marker));\ }