X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fusterr.h;h=067866ab23c0117086f52ad334da9cb1c6b25148;hb=d6322067aa791234d0d81e1a6b03b445635d5f65;hp=6b8817764803f66f55bb2b19ddac83d8987f34bb;hpb=909bc43f70be2b1d3efcefe33121ee1e99d9895b;p=ust.git diff --git a/include/usterr.h b/include/usterr.h index 6b88177..067866a 100644 --- a/include/usterr.h +++ b/include/usterr.h @@ -80,5 +80,6 @@ extern int ust_safe_snprintf(char *str, size_t n, const char *fmt, ...); #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 WARN_ON_ONCE(condition) WARN_ON(condition) #endif /* USTERR_H */