X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=share%2Fusterr.h;h=366718da7682b2c758bea859160f352069186a9a;hb=ba6459ba344b54a4f7775e431447be79fd7790f8;hp=a2f915bdad41139a3765ff6c3c2662289bf08cb7;hpb=8d938dbd14e689a294f8a251e4ac255985c65ad5;p=ust.git diff --git a/share/usterr.h b/share/usterr.h index a2f915b..366718d 100644 --- a/share/usterr.h +++ b/share/usterr.h @@ -4,6 +4,7 @@ #define DBG(fmt, args...) fprintf(stderr, fmt "\n", ## args) #define WARN(fmt, args...) fprintf(stderr, "usertrace: WARNING: " fmt "\n", ## args) #define ERR(fmt, args...) fprintf(stderr, "usertrace: ERROR: " fmt "\n", ## args) +#define BUG(fmt, args...) fprintf(stderr, "usertrace: BUG: " fmt "\n", ## args) #define PERROR(call) perror("usertrace: ERROR: " call) #define BUG_ON(condition) do { if (unlikely(condition)) ERR("condition not respected (BUG)"); } while(0)