Skip to content

Commit 016f1c5

Browse files
michal42dedekind
authored andcommitted
UBIFS: not build debug messages with CONFIG_UBIFS_FS_DEBUG disabled
With $ grep -e UBIFS_FS_DEBUG -e DYNAMIC_DEBUG .config # CONFIG_UBIFS_FS_DEBUG is not set CONFIG_DYNAMIC_DEBUG=y Debug messages are kept in the object files due to the dynamic_pr_debug() macro, even if they are never going to be printed: $ make fs/ubifs/super.o $ strings fs/ubifs/super.o | grep 'compiled on' compiled on: Aug 11 2011 at 12:21:38 Use plain printk to fix this. Signed-off-by: Michal Marek <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]>
1 parent 93ee7a9 commit 016f1c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/ubifs/debug.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ void dbg_debugfs_exit_fs(struct ubifs_info *c);
335335
#define DBGKEY(key) ((char *)(key))
336336
#define DBGKEY1(key) ((char *)(key))
337337

338-
#define ubifs_dbg_msg(fmt, ...) do { \
339-
if (0) \
340-
pr_debug(fmt "\n", ##__VA_ARGS__); \
338+
#define ubifs_dbg_msg(fmt, ...) do { \
339+
if (0) \
340+
printk(KERN_DEBUG fmt "\n", ##__VA_ARGS__); \
341341
} while (0)
342342

343343
#define dbg_dump_stack()

0 commit comments

Comments
 (0)