[PATCH] hpfs: bring hpfs_error() into shape
- switch to error message buffer in .bss - missing va_end() (htf it worked before?) - use vsnprintf() - rename variables to understandable "fmt", "args". - "const char *fmt", yes. - add __attribute__((format ... Still, put that coffee down before reading more. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
4a6e617a4b
commit
352d94d040
@@ -317,7 +317,8 @@ static inline struct hpfs_sb_info *hpfs_sb(struct super_block *sb)
|
||||
|
||||
/* super.c */
|
||||
|
||||
void hpfs_error(struct super_block *, char *, ...);
|
||||
void hpfs_error(struct super_block *, const char *, ...)
|
||||
__attribute__((format (printf, 2, 3)));
|
||||
int hpfs_stop_cycles(struct super_block *, int, int *, int *, char *);
|
||||
unsigned hpfs_count_one_bitmap(struct super_block *, secno);
|
||||
|
||||
|
Reference in New Issue
Block a user