marker: remove printf and add debug msg
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 22 Jul 2009 21:41:03 +0000 (17:41 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 22 Jul 2009 21:41:03 +0000 (17:41 -0400)
libust/marker.c
libust/marker.h

index 39da7f40f08338a69ae85cc6915cac303376390e..33c500af1b931728b4ad1d3027d1532aa0d3e20c 100644 (file)
@@ -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;
        }
 }
index 5f375b872350443fa4142436a0f234e6c173787f..146409c552b8ab6454228f11d8fefffe586982ba 100644 (file)
@@ -31,6 +31,7 @@
 #include "kernelcompat.h"
 #include "compiler.h"
 #include <kcompat/list.h>
+#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));\
 }
 
This page took 0.027364 seconds and 4 git commands to generate.