Signed-off-by: Ivan Shapovalov <intelfx100@xxxxxxxxx> --- fs/reiser4/debug.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/reiser4/debug.h b/fs/reiser4/debug.h index 060921f..281bf78 100644 --- a/fs/reiser4/debug.h +++ b/fs/reiser4/debug.h @@ -46,6 +46,9 @@ /* version of info that only actually prints anything when _d_ebugging is on */ #define dinfo(format, ...) printk(format , ## __VA_ARGS__) +/* a conditional equivalent of reiser4_log */ +#define reiser4_debug(label, format, ...) \ + reiser4_log(label, format, ## __VA_ARGS__) /* macro to catch logical errors. Put it into `default' clause of switch() statement. */ #define impossible(label, format, ...) \ @@ -77,6 +80,7 @@ extern void call_on_each_assert(void); #else #define dinfo(format, args...) noop +#define reiser4_debug(label, format, args...) noop #define impossible(label, format, args...) noop #define assert(label, cond) noop #define check_me(label, expr) ((void) (expr)) -- 2.0.0 -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html