From: Mihai Moldovan Date: Wed, 17 Aug 2011 10:10:08 +0000 (+0900) Subject: fat: fix utf8 iocharset warning message X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=186b53701ca5a843b07ca44a8d954dc6043c70f4;p=openwrt%2Fstaging%2Fblogic.git fat: fix utf8 iocharset warning message The fat_msg function already formats the given message and appends a newline to it - we don't need to do this in the passed message string as well, or will end up with a blank line printed in the kernel log ring buffer. Also change the loglevel from error to warning. Signed-off-by: Mihai Moldovan Signed-off-by: OGAWA Hirofumi --- diff --git a/fs/fat/inode.c b/fs/fat/inode.c index cb8d8391ac0b..52bcf58104e2 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -1186,9 +1186,9 @@ static int parse_options(struct super_block *sb, char *options, int is_vfat, out: /* UTF-8 doesn't provide FAT semantics */ if (!strcmp(opts->iocharset, "utf8")) { - fat_msg(sb, KERN_ERR, "utf8 is not a recommended IO charset" + fat_msg(sb, KERN_WARNING, "utf8 is not a recommended IO charset" " for FAT filesystems, filesystem will be " - "case sensitive!\n"); + "case sensitive!"); } /* If user doesn't specify allow_utime, it's initialized from dmask. */