diff options
Diffstat (limited to 'drivers/mtd/ubi/debug.h')
-rw-r--r-- | drivers/mtd/ubi/debug.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h index 64fbb0021825..ead2cd16ba75 100644 --- a/drivers/mtd/ubi/debug.h +++ b/drivers/mtd/ubi/debug.h | |||
@@ -43,7 +43,10 @@ | |||
43 | pr_debug("UBI DBG " type ": " fmt "\n", ##__VA_ARGS__) | 43 | pr_debug("UBI DBG " type ": " fmt "\n", ##__VA_ARGS__) |
44 | 44 | ||
45 | /* Just a debugging messages not related to any specific UBI subsystem */ | 45 | /* Just a debugging messages not related to any specific UBI subsystem */ |
46 | #define dbg_msg(fmt, ...) ubi_dbg_msg("msg", fmt, ##__VA_ARGS__) | 46 | #define dbg_msg(fmt, ...) \ |
47 | printk(KERN_DEBUG "UBI DBG (pid %d): %s: " fmt "\n", \ | ||
48 | current->pid, __func__, ##__VA_ARGS__) | ||
49 | |||
47 | /* General debugging messages */ | 50 | /* General debugging messages */ |
48 | #define dbg_gen(fmt, ...) ubi_dbg_msg("gen", fmt, ##__VA_ARGS__) | 51 | #define dbg_gen(fmt, ...) ubi_dbg_msg("gen", fmt, ##__VA_ARGS__) |
49 | /* Messages from the eraseblock association sub-system */ | 52 | /* Messages from the eraseblock association sub-system */ |