X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libust%2Ftracepoint.c;h=7976f7d920c3f3a6ff3e8c442e6aa2eace925e92;hb=e17571a59eef2b054c7432f6cba10c2cb467a182;hp=ee335adfbf20e827c326574fc02d1b99e5ec1661;hpb=772030fed323e388da467735cf4b5e8781acb710;p=lttng-ust.git diff --git a/libust/tracepoint.c b/libust/tracepoint.c index ee335adf..7976f7d9 100644 --- a/libust/tracepoint.c +++ b/libust/tracepoint.c @@ -32,13 +32,13 @@ #include -#include "kernelcompat.h" -#include "tracepoint.h" +#include +#include #include "usterr.h" //#include "list.h" #define _LGPL_SOURCE -#include +#include //extern struct tracepoint __start___tracepoints[] __attribute__((visibility("hidden"))); //extern struct tracepoint __stop___tracepoints[] __attribute__((visibility("hidden"))); @@ -115,7 +115,7 @@ static void debug_print_probes(struct tracepoint_entry *entry) return; for (i = 0; entry->funcs[i]; i++) - printk(KERN_DEBUG "Probe %d : %p\n", i, entry->funcs[i]); + DBG("Probe %d : %p", i, entry->funcs[i]); } static void * @@ -225,8 +225,7 @@ static struct tracepoint_entry *add_tracepoint(const char *name) head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)]; hlist_for_each_entry(e, node, head, hlist) { if (!strcmp(name, e->name)) { - printk(KERN_NOTICE - "tracepoint %s busy\n", name); + DBG("tracepoint %s busy", name); return ERR_PTR(-EEXIST); /* Already there */ } }