$(KCOMPAT_CFLAGS) $(URCU_CFLAGS)
lib_LTLIBRARIES = libust.la
-libust_la_SOURCES = marker.c marker.h tracepoint.c tracepoint.h immediate.h channels.c channels.h marker-control.c marker-control.h relay.c relay.h tracer.c tracer.h tracercore.c tracercore.h serialize.c tracectl.c $(top_builddir)/libustcomm/ustcomm.c $(top_builddir)/share/usterr.c $(top_builddir)/share/usterr.h localerr.h
+libust_la_SOURCES = marker.c marker.h tracepoint.c tracepoint.h immediate.h channels.c channels.h marker-control.c marker-control.h relay.c relay.h tracer.c tracer.h tracercore.c tracercore.h serialize.c tracectl.c $(top_builddir)/libustcomm/ustcomm.c $(top_builddir)/share/usterr.h localerr.h
libust_la_LDFLAGS = -no-undefined -version-info 0:0:0
libust_la_LIBADD = $(URCU_LIBS) -lpthread
ltt_unlock_traces();
if(trace == NULL) {
- CPRINTF("cannot find trace!");
+ ERR("cannot find trace!");
return (void *)1;
}
ltt_unlock_traces();
if(trace == NULL) {
- CPRINTF("cannot find trace!");
+ ERR("cannot find trace!");
return (void *)1;
}
ltt_unlock_traces();
if(trace == NULL) {
- CPRINTF("cannot find trace!");
+ ERR("cannot find trace!");
return (void *)1;
}
ltt_unlock_traces();
if(trace == NULL) {
- CPRINTF("cannot find trace!");
+ ERR("cannot find trace!");
return (void *)1;
}
ltt_unlock_traces();
if(trace == NULL) {
- CPRINTF("cannot find trace!");
+ ERR("cannot find trace!");
return (void *)1;
}
// ltt_unlock_traces();
//
// if(trace == NULL) {
-// CPRINTF("cannot find trace!");
+// ERR("cannot find trace!");
// return (void *)1;
// }
//
+++ /dev/null
-#include <stdarg.h>
-#include <unistd.h>
-
-int safe_printf(const char *fmt, ...)
-{
- static char buf[500];
- va_list ap;
- int n;
-
- va_start(ap, fmt);
-
- n = vsnprintf(buf, sizeof(buf), fmt, ap);
-
- write(STDOUT_FILENO, buf, n);
-
- va_end(ap);
-}
-
#define BUG_ON(condition) do { if (unlikely(condition)) ERR("condition not respected (BUG)"); } while(0)
#define WARN_ON(condition) do { if (unlikely(condition)) WARN("condition not respected on line %s:%d", __FILE__, __LINE__); } while(0)
-#define CPRINTF(fmt, args...) safe_printf(fmt "\n", ## args)
-
-
#endif /* USTERR_H */