X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=share%2Fusterr.h;h=2ab3662c9a8147e3c136eabaa2ea015b8fb6d036;hb=59b161cdfcaad93fee295add37090a3d991e7aa8;hp=6b871ff56da4363f4bb248c5bc4919ffbc36ad65;hpb=183646e613012a150edf2aa814e9bc44fd67e089;p=ust.git diff --git a/share/usterr.h b/share/usterr.h index 6b871ff..2ab3662 100644 --- a/share/usterr.h +++ b/share/usterr.h @@ -1,3 +1,6 @@ +#ifndef USTERR_H +#define USTERR_H + #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) @@ -6,3 +9,4 @@ #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) +#endif /* USTERR_H */