[PATCH] ufs: easy debug
Currently to turn on debug mode "user" has to edit ~10 files, to turn off he has to do it again. This patch introduce such changes: 1)turn on(off) debug messages via ".config" 2)remove unnecessary duplication of code 3)make "UFSD" macros more similar to function 4)fix some compiler warnings Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
5afb3145c9
commit
abf5d15fd2
@@ -14,15 +14,6 @@
|
||||
#include "swab.h"
|
||||
#include "util.h"
|
||||
|
||||
#undef UFS_UTILS_DEBUG
|
||||
|
||||
#ifdef UFS_UTILS_DEBUG
|
||||
#define UFSD(x) printk("(%s, %d), %s: ", __FILE__, __LINE__, __FUNCTION__); printk x;
|
||||
#else
|
||||
#define UFSD(x)
|
||||
#endif
|
||||
|
||||
|
||||
struct ufs_buffer_head * _ubh_bread_ (struct ufs_sb_private_info * uspi,
|
||||
struct super_block *sb, u64 fragment, u64 size)
|
||||
{
|
||||
|
Reference in New Issue
Block a user