Skip to content

Commit

Permalink
fs/fat: use fat_msg() to replace printk() in __fat_fs_error()
Browse files Browse the repository at this point in the history
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Gu Zheng authored and Linus Torvalds committed Jul 3, 2013
1 parent e5f7f84 commit e68e96d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/fat/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@ void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...)
va_start(args, fmt);
vaf.fmt = fmt;
vaf.va = &args;
printk(KERN_ERR "FAT-fs (%s): error, %pV\n", sb->s_id, &vaf);
fat_msg(sb, KERN_ERR, "error, %pV", &vaf);
va_end(args);
}

if (opts->errors == FAT_ERRORS_PANIC)
panic("FAT-fs (%s): fs panic from previous error\n", sb->s_id);
else if (opts->errors == FAT_ERRORS_RO && !(sb->s_flags & MS_RDONLY)) {
sb->s_flags |= MS_RDONLY;
printk(KERN_ERR "FAT-fs (%s): Filesystem has been "
"set read-only\n", sb->s_id);
fat_msg(sb, KERN_ERR, "Filesystem has been set read-only");
}
}
EXPORT_SYMBOL_GPL(__fat_fs_error);
Expand Down

0 comments on commit e68e96d

Please sign in to comment.