* [PATCH] fs/fat: Use fat_msg() to replace printk() in __fat_fs_error()
@ 2013-05-13 8:56 Gu Zheng
2013-05-13 9:28 ` OGAWA Hirofumi
0 siblings, 1 reply; 3+ messages in thread
From: Gu Zheng @ 2013-05-13 8:56 UTC (permalink / raw)
To: hirofumi; +Cc: linux-kernel
>From 87141ec058aad35ac55bc7c3fc2eb378566a5a6a Mon Sep 17 00:00:00 2001
From: Gu Zheng <guz.fnst@cn.fujitsu.com>
Date: Mon, 13 May 2013 17:48:19 +0900
Subject: [PATCH] fs/fat: Use fat_msg() to replace printk() in __fat_fs_error()
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
---
fs/fat/misc.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/fs/fat/misc.c b/fs/fat/misc.c
index 359d307..628e22a 100644
--- a/fs/fat/misc.c
+++ b/fs/fat/misc.c
@@ -30,7 +30,7 @@ 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);
}
@@ -38,8 +38,7 @@ void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...)
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);
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fs/fat: Use fat_msg() to replace printk() in __fat_fs_error()
2013-05-13 8:56 [PATCH] fs/fat: Use fat_msg() to replace printk() in __fat_fs_error() Gu Zheng
@ 2013-05-13 9:28 ` OGAWA Hirofumi
2013-05-14 3:16 ` Gu Zheng
0 siblings, 1 reply; 3+ messages in thread
From: OGAWA Hirofumi @ 2013-05-13 9:28 UTC (permalink / raw)
To: Gu Zheng, Andrew Morton; +Cc: linux-kernel
Gu Zheng <guz.fnst@cn.fujitsu.com> writes:
>>From 87141ec058aad35ac55bc7c3fc2eb378566a5a6a Mon Sep 17 00:00:00 2001
> From: Gu Zheng <guz.fnst@cn.fujitsu.com>
> Date: Mon, 13 May 2013 17:48:19 +0900
> Subject: [PATCH] fs/fat: Use fat_msg() to replace printk() in __fat_fs_error()
> - printk(KERN_ERR "FAT-fs (%s): error, %pV\n", sb->s_id, &vaf);
> + fat_msg(sb, KERN_ERR, "error, %pV", &vaf);
> va_end(args);
I'm assuming nested "%pV" is works fine. If so,
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
> @@ -38,8 +38,7 @@ void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...)
> 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);
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fs/fat: Use fat_msg() to replace printk() in __fat_fs_error()
2013-05-13 9:28 ` OGAWA Hirofumi
@ 2013-05-14 3:16 ` Gu Zheng
0 siblings, 0 replies; 3+ messages in thread
From: Gu Zheng @ 2013-05-14 3:16 UTC (permalink / raw)
To: OGAWA Hirofumi; +Cc: Andrew Morton, linux-kernel
On 05/13/2013 05:28 PM, OGAWA Hirofumi wrote:
> Gu Zheng <guz.fnst@cn.fujitsu.com> writes:
>
>> >From 87141ec058aad35ac55bc7c3fc2eb378566a5a6a Mon Sep 17 00:00:00 2001
>> From: Gu Zheng <guz.fnst@cn.fujitsu.com>
>> Date: Mon, 13 May 2013 17:48:19 +0900
>> Subject: [PATCH] fs/fat: Use fat_msg() to replace printk() in __fat_fs_error()
>
>> - printk(KERN_ERR "FAT-fs (%s): error, %pV\n", sb->s_id, &vaf);
>> + fat_msg(sb, KERN_ERR, "error, %pV", &vaf);
>> va_end(args);
>
> I'm assuming nested "%pV" is works fine. If so,
It works fine, I've tested this.
>
> Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Thanks!
Best regards,
Gu
>
>> @@ -38,8 +38,7 @@ void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...)
>> 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);
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-14 3:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-13 8:56 [PATCH] fs/fat: Use fat_msg() to replace printk() in __fat_fs_error() Gu Zheng
2013-05-13 9:28 ` OGAWA Hirofumi
2013-05-14 3:16 ` Gu Zheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox