diff options
author | Alexey Fisher <bug-track@fisher-privat.net> | 2011-04-12 21:08:38 +0900 |
---|---|---|
committer | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2011-04-12 21:12:35 +0900 |
commit | 81ac21d34a91e85b029cd86e2ed5eeae8d7c3cd4 (patch) | |
tree | ec3319428a074a2d9694844612f6fcbb39e21d53 /fs/fat/fat.h | |
parent | 2c8a5ffb94bbb4f04aaf8a923e9098fb7a51a75a (diff) |
fat: Add fat_msg() function for preformated FAT messages
Add fat_msg() to replace not cosequent used printk() in fs/fat/*
New message format should be as fallow:
FAT-fs (sda1): some thing happened.
Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Diffstat (limited to 'fs/fat/fat.h')
-rw-r--r-- | fs/fat/fat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fat/fat.h b/fs/fat/fat.h index a768dad7790..8276cc282de 100644 --- a/fs/fat/fat.h +++ b/fs/fat/fat.h @@ -331,6 +331,8 @@ __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...) __fat_fs_error(sb, 1, fmt , ## args) #define fat_fs_error_ratelimit(sb, fmt, args...) \ __fat_fs_error(sb, __ratelimit(&MSDOS_SB(sb)->ratelimit), fmt , ## args) +void fat_msg(struct super_block *sb, const char *level, const char *fmt, ...) + __attribute__ ((format (printf, 3, 4))) __cold; extern int fat_clusters_flush(struct super_block *sb); extern int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster); extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts, |