Skip to content

Commit

Permalink
Fix pr_* to proper no-op when in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JNE committed Oct 1, 2024
1 parent 237eab1 commit 50b75a9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/lkm.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
#define prerr_once(fmt, ...) pr_err_once(fmt, ##__VA_ARGS__);

#else
#define prinfo(fmt, ...)
#define prwarn(fmt, ...)
#define premerg(fmt, ...)
#define pralert(fmt, ...)
#define prcrit(fmt, ...)
#define prnotice(fmt, ...)
#define prerr(fmt, ...)
#define prwarn_ratelimited(fmt, ...);
#define prinfo_ratelimited(fmt, ...);
#define prerr_ratelimited(fmt, ...);
#define prinfo_once(fmt, ...);
#define prwarn_once(fmt, ...);
#define prerr_once(fmt, ...);
#define prinfo(fmt, ...) do {} while (0)
#define prwarn(fmt, ...) do {} while (0)
#define premerg(fmt, ...) do {} while (0)
#define pralert(fmt, ...) do {} while (0)
#define prcrit(fmt, ...) do {} while (0)
#define prnotice(fmt, ...) do {} while (0)
#define prerr(fmt, ...) do {} while (0)
#define prwarn_ratelimited(fmt, ...) do {} while (0)
#define prinfo_ratelimited(fmt, ...) do {} while (0)
#define prerr_ratelimited(fmt, ...) do {} while (0)
#define prinfo_once(fmt, ...) do {} while (0)
#define prwarn_once(fmt, ...) do {} while (0)
#define prerr_once(fmt, ...) do {} while (0)
#endif

#define EXIT_UNHIDE 1
Expand Down

0 comments on commit 50b75a9

Please sign in to comment.