nilfs2: replace nilfs_warning() with nilfs_msg()
Use nilfs_msg() to output warning messages and get rid of nilfs_warning() function. This also removes function names from the messages unless we embed them explicitly in format strings. Instead, some messages are revised to clarify the context. [arnd@arndb.de: avoid warning about unused variables] Link: http://lkml.kernel.org/r/20160615201945.3348205-1-arnd@arndb.de Link: http://lkml.kernel.org/r/1464875891-5443-6-git-send-email-konishi.ryusuke@lab.ntt.co.jp Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
feee880fa5
commit
d6517deb01
@@ -306,8 +306,6 @@ void __nilfs_msg(struct super_block *sb, const char *level,
|
||||
extern __printf(3, 4)
|
||||
void __nilfs_error(struct super_block *sb, const char *function,
|
||||
const char *fmt, ...);
|
||||
extern __printf(3, 4)
|
||||
void nilfs_warning(struct super_block *, const char *, const char *, ...);
|
||||
|
||||
#ifdef CONFIG_PRINTK
|
||||
|
||||
@@ -319,7 +317,10 @@ void nilfs_warning(struct super_block *, const char *, const char *, ...);
|
||||
#else
|
||||
|
||||
#define nilfs_msg(sb, level, fmt, ...) \
|
||||
no_printk(fmt, ##__VA_ARGS__)
|
||||
do { \
|
||||
no_printk(fmt, ##__VA_ARGS__); \
|
||||
(void)(sb); \
|
||||
} while (0)
|
||||
#define nilfs_error(sb, fmt, ...) \
|
||||
do { \
|
||||
no_printk(fmt, ##__VA_ARGS__); \
|
||||
|
Reference in New Issue
Block a user