From e67e5009406c54870b44bbb785f8383f66e83893 Mon Sep 17 00:00:00 2001 From: Mark Fasheh Date: Fri, 22 Sep 2017 18:06:06 -0500 Subject: [PATCH] scoutfs: turn off tracing in dlmglue.c Put this behind a #define. Leave the asserts (mlog_bug_on_msg) though and redefine their macro to printk instead of going to the trace buffer. Signed-off-by: Mark Fasheh --- kmod/src/dlmglue.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kmod/src/dlmglue.c b/kmod/src/dlmglue.c index f1c206aa..7f729239 100644 --- a/kmod/src/dlmglue.c +++ b/kmod/src/dlmglue.c @@ -38,6 +38,7 @@ #include "dlmglue.h" +#ifdef TRACE_DLMGLUE #define mlog(mask, fmt, args...) trace_printk(fmt , ##args) #define mlog_errno(st) do { \ int _st = (st); \ @@ -45,11 +46,14 @@ _st != AOP_TRUNCATED_PAGE && _st != -ENOSPC) \ mlog(ML_ERROR, "status = %lld\n", (long long)_st); \ } while (0) - +#else +#define mlog(mask, fmt, args...) +#define mlog_errno(st) +#endif #define mlog_bug_on_msg(cond, fmt, args...) do { \ if (cond) { \ - mlog(ML_ERROR, "bug expression: " #cond "\n"); \ - mlog(ML_ERROR, fmt, ##args); \ + printk(KERN_ERR "bug expression: " #cond "\n"); \ + printk(KERN_ERR fmt, ##args); \ BUG(); \ } \ } while (0)