Commit 02b70682 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] jffs2 debug gcc-2.9x fix

Work around gcc-2.95.x macro expansion bug.

Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5e391dc9
...@@ -82,28 +82,28 @@ ...@@ -82,28 +82,28 @@
do { \ do { \
printk(JFFS2_ERR_MSG_PREFIX \ printk(JFFS2_ERR_MSG_PREFIX \
" (%d) %s: " fmt, current->pid, \ " (%d) %s: " fmt, current->pid, \
__FUNCTION__, ##__VA_ARGS__); \ __FUNCTION__ , ##__VA_ARGS__); \
} while(0) } while(0)
#define JFFS2_WARNING(fmt, ...) \ #define JFFS2_WARNING(fmt, ...) \
do { \ do { \
printk(JFFS2_WARN_MSG_PREFIX \ printk(JFFS2_WARN_MSG_PREFIX \
" (%d) %s: " fmt, current->pid, \ " (%d) %s: " fmt, current->pid, \
__FUNCTION__, ##__VA_ARGS__); \ __FUNCTION__ , ##__VA_ARGS__); \
} while(0) } while(0)
#define JFFS2_NOTICE(fmt, ...) \ #define JFFS2_NOTICE(fmt, ...) \
do { \ do { \
printk(JFFS2_NOTICE_MSG_PREFIX \ printk(JFFS2_NOTICE_MSG_PREFIX \
" (%d) %s: " fmt, current->pid, \ " (%d) %s: " fmt, current->pid, \
__FUNCTION__, ##__VA_ARGS__); \ __FUNCTION__ , ##__VA_ARGS__); \
} while(0) } while(0)
#define JFFS2_DEBUG(fmt, ...) \ #define JFFS2_DEBUG(fmt, ...) \
do { \ do { \
printk(JFFS2_DBG_MSG_PREFIX \ printk(JFFS2_DBG_MSG_PREFIX \
" (%d) %s: " fmt, current->pid, \ " (%d) %s: " fmt, current->pid, \
__FUNCTION__, ##__VA_ARGS__); \ __FUNCTION__ , ##__VA_ARGS__); \
} while(0) } while(0)
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment