X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=share%2Fusterr.h;h=366718da7682b2c758bea859160f352069186a9a;hb=20b37a3100b0d8722b361f62fd592520264fb9fa;hp=a2f915bdad41139a3765ff6c3c2662289bf08cb7;hpb=5f54827b88b093974e4bf58f67490036718644c7;p=lttng-ust.git diff --git a/share/usterr.h b/share/usterr.h index a2f915bd..366718da 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)