X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Ftracepoint.c;h=7976f7d920c3f3a6ff3e8c442e6aa2eace925e92;hb=c1f205309da615f1f0c68beedf37365942246537;hp=df94b2cb4c15e7acc091a410de0265251ea52083;hpb=b7ea1a1c8ed1cea410bb43c7cc6621c951e4b621;p=ust.git diff --git a/libust/tracepoint.c b/libust/tracepoint.c index df94b2c..7976f7d 100644 --- a/libust/tracepoint.c +++ b/libust/tracepoint.c @@ -32,8 +32,8 @@ #include -#include "kernelcompat.h" -#include "tracepoint.h" +#include +#include #include "usterr.h" //#include "list.h" @@ -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 */ } }