aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/debug.h
diff options
context:
space:
mode:
authorArtem B. Bityutskiy <dedekind@infradead.org>2005-09-14 12:57:35 -0400
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-11-06 15:38:34 -0500
commit81e39cf0297c7f32fb8869af9ae199130208ae6f (patch)
tree23d10bae1a1d4067f51a25115b35c3e39ac62f8b /fs/jffs2/debug.h
parent8acff5e93488e4da653097bd5e50662ee0985867 (diff)
[JFFS2] Debug message format clean up
Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2/debug.h')
-rw-r--r--fs/jffs2/debug.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/fs/jffs2/debug.h b/fs/jffs2/debug.h
index 60e5dbb3946a..7328e67bebb6 100644
--- a/fs/jffs2/debug.h
+++ b/fs/jffs2/debug.h
@@ -7,7 +7,7 @@
7 * 7 *
8 * For licensing information, see the file 'LICENCE' in this directory. 8 * For licensing information, see the file 'LICENCE' in this directory.
9 * 9 *
10 * $Id: debug.h,v 1.15 2005/09/07 08:34:54 havasi Exp $ 10 * $Id: debug.h,v 1.16 2005/09/14 16:57:32 dedekind Exp $
11 * 11 *
12 */ 12 */
13#ifndef _JFFS2_DEBUG_H_ 13#ifndef _JFFS2_DEBUG_H_
@@ -55,41 +55,46 @@
55#endif 55#endif
56 56
57/* The prefixes of JFFS2 messages */ 57/* The prefixes of JFFS2 messages */
58#define JFFS2_DBG_MSG_PREFIX "[JFFS2 DBG]" 58#define JFFS2_DBG_PREFIX "[JFFS2 DBG]"
59#define JFFS2_ERR_MSG_PREFIX "JFFS2 error:" 59#define JFFS2_ERR_PREFIX "JFFS2 error:"
60#define JFFS2_WARN_MSG_PREFIX "JFFS2 warning:" 60#define JFFS2_WARN_PREFIX "JFFS2 warning:"
61#define JFFS2_NOTICE_MSG_PREFIX "JFFS2 notice:" 61#define JFFS2_NOTICE_PREFIX "JFFS2 notice:"
62 62
63#define JFFS2_ERR_LVL KERN_ERR 63#define JFFS2_ERR KERN_ERR
64#define JFFS2_WARN_LVL KERN_WARNING 64#define JFFS2_WARN KERN_WARNING
65#define JFFS2_NOTICE_LVL KERN_NOTICE 65#define JFFS2_NOT KERN_NOTICE
66#define JFFS2_DBG_LVL KERN_DEBUG 66#define JFFS2_DBG KERN_DEBUG
67
68#define JFFS2_DBG_MSG_PREFIX JFFS2_DBG JFFS2_DBG_PREFIX
69#define JFFS2_ERR_MSG_PREFIX JFFS2_ERR JFFS2_ERR_PREFIX
70#define JFFS2_WARN_MSG_PREFIX JFFS2_WARN JFFS2_WARN_PREFIX
71#define JFFS2_NOTICE_MSG_PREFIX JFFS2_NOT JFFS2_NOTICE_PREFIX
67 72
68/* JFFS2 message macros */ 73/* JFFS2 message macros */
69#define JFFS2_ERROR(fmt, ...) \ 74#define JFFS2_ERROR(fmt, ...) \
70 do { \ 75 do { \
71 printk(JFFS2_ERR_LVL JFFS2_ERR_MSG_PREFIX \ 76 printk(JFFS2_ERR_MSG_PREFIX \
72 " (%d) %s: " fmt, current->pid, \ 77 " (%d) %s: " fmt, current->pid, \
73 __FUNCTION__, ##__VA_ARGS__); \ 78 __FUNCTION__, ##__VA_ARGS__); \
74 } while(0) 79 } while(0)
75 80
76#define JFFS2_WARNING(fmt, ...) \ 81#define JFFS2_WARNING(fmt, ...) \
77 do { \ 82 do { \
78 printk(JFFS2_WARN_LVL JFFS2_WARN_MSG_PREFIX \ 83 printk(JFFS2_WARN_MSG_PREFIX \
79 " (%d) %s: " fmt, current->pid, \ 84 " (%d) %s: " fmt, current->pid, \
80 __FUNCTION__, ##__VA_ARGS__); \ 85 __FUNCTION__, ##__VA_ARGS__); \
81 } while(0) 86 } while(0)
82 87
83#define JFFS2_NOTICE(fmt, ...) \ 88#define JFFS2_NOTICE(fmt, ...) \
84 do { \ 89 do { \
85 printk(JFFS2_NOTICE_LVL JFFS2_NOTICE_MSG_PREFIX \ 90 printk(JFFS2_NOTICE_MSG_PREFIX \
86 " (%d) %s: " fmt, current->pid, \ 91 " (%d) %s: " fmt, current->pid, \
87 __FUNCTION__, ##__VA_ARGS__); \ 92 __FUNCTION__, ##__VA_ARGS__); \
88 } while(0) 93 } while(0)
89 94
90#define JFFS2_DEBUG(fmt, ...) \ 95#define JFFS2_DEBUG(fmt, ...) \
91 do { \ 96 do { \
92 printk(JFFS2_DBG_LVL JFFS2_DBG_MSG_PREFIX \ 97 printk(JFFS2_DBG_MSG_PREFIX \
93 " (%d) %s: " fmt, current->pid, \ 98 " (%d) %s: " fmt, current->pid, \
94 __FUNCTION__, ##__VA_ARGS__); \ 99 __FUNCTION__, ##__VA_ARGS__); \
95 } while(0) 100 } while(0)