X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust%2Ftracepoint.c;h=7976f7d920c3f3a6ff3e8c442e6aa2eace925e92;hb=1518fa0fad67101416c2def6b1c88ec767e8b5eb;hp=9de21c884892b64b78365bef3718aa5c547fcf08;hpb=93d0f2eaff675059588e958e3de74a1bb7dd4028;p=ust.git diff --git a/libust/tracepoint.c b/libust/tracepoint.c index 9de21c8..7976f7d 100644 --- a/libust/tracepoint.c +++ b/libust/tracepoint.c @@ -32,7 +32,7 @@ #include -#include "kernelcompat.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 */ } }