From ceb9190969e458dcd1427566f762dbb9cfdfdc94 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Fri, 29 Sep 2017 12:31:20 +0900 Subject: dm: replace dm_dbg() with pr_debug() As we discussed before in ML, dm_dbg() causes undefined reference error if #define DEBUG is added to users, but not drivers/core/util.c We do not need this macro because we can use pr_debug() instead, and it is pretty easy to enable it for the DM core by using ccflags-y. Signed-off-by: Masahiro Yamada --- include/dm/util.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'include/dm/util.h') diff --git a/include/dm/util.h b/include/dm/util.h index 45529ce0e6..0d4ce8f4e6 100644 --- a/include/dm/util.h +++ b/include/dm/util.h @@ -15,14 +15,6 @@ static inline void dm_warn(const char *fmt, ...) } #endif -#ifdef DEBUG -void dm_dbg(const char *fmt, ...); -#else -static inline void dm_dbg(const char *fmt, ...) -{ -} -#endif - struct list_head; /** -- cgit v1.2.3