mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-31 21:31:34 +00:00
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 <mfasheh@versity.com>
This commit is contained in:
+7
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user