Commit e68e96d2a7b2391cc1f70e207ec9cbe9d092adc9

Authored by Gu Zheng
Committed by Linus Torvalds
1 parent e5f7f84843

fs/fat: use fat_msg() to replace printk() in __fat_fs_error()

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>

Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff

... ... @@ -30,7 +30,7 @@
30 30 va_start(args, fmt);
31 31 vaf.fmt = fmt;
32 32 vaf.va = &args;
33   - printk(KERN_ERR "FAT-fs (%s): error, %pV\n", sb->s_id, &vaf);
  33 + fat_msg(sb, KERN_ERR, "error, %pV", &vaf);
34 34 va_end(args);
35 35 }
36 36  
... ... @@ -38,8 +38,7 @@
38 38 panic("FAT-fs (%s): fs panic from previous error\n", sb->s_id);
39 39 else if (opts->errors == FAT_ERRORS_RO && !(sb->s_flags & MS_RDONLY)) {
40 40 sb->s_flags |= MS_RDONLY;
41   - printk(KERN_ERR "FAT-fs (%s): Filesystem has been "
42   - "set read-only\n", sb->s_id);
  41 + fat_msg(sb, KERN_ERR, "Filesystem has been set read-only");
43 42 }
44 43 }
45 44 EXPORT_SYMBOL_GPL(__fat_fs_error);