X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=share%2Fusterr.h;h=a2f915bdad41139a3765ff6c3c2662289bf08cb7;hb=5f54827b88b093974e4bf58f67490036718644c7;hp=2ab3662c9a8147e3c136eabaa2ea015b8fb6d036;hpb=e1152c3706f5140e7267f75dc597daa1a9c579a6;p=ust.git diff --git a/share/usterr.h b/share/usterr.h index 2ab3662..a2f915b 100644 --- a/share/usterr.h +++ b/share/usterr.h @@ -7,6 +7,6 @@ #define PERROR(call) perror("usertrace: ERROR: " call) #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"); } while(0) +#define WARN_ON(condition) do { if (unlikely(condition)) WARN("condition not respected on line %s:%d", __FILE__, __LINE__); } while(0) #endif /* USTERR_H */