#include <stdarg.h>
#include <stdio.h>
-#include <ust/core.h>
-
#include "share.h"
enum ust_loglevel {
__func__); \
} while(0)
-#ifdef UST_DEBUG
+#ifdef LTTNG_UST_DEBUG
# define DBG(fmt, args...) ERRMSG(fmt, ## args)
# define DBG_raw(fmt, args...) \
do { \
#define BUG_ON(condition) \
do { \
- if (unlikely(condition)) \
+ if (caa_unlikely(condition)) \
ERR("condition not respected (BUG) on line %s:%d", __FILE__, __LINE__); \
} while(0)
#define WARN_ON(condition) \
do { \
- if (unlikely(condition)) \
+ if (caa_unlikely(condition)) \
WARN("condition not respected on line %s:%d", __FILE__, __LINE__); \
} while(0)
#define WARN_ON_ONCE(condition) WARN_ON(condition)