Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fat: fix error message for bogus number of directory entries

"bogus directory-entries per block" was reported for what was instead
bogus number of directory entries. The message also mismatched the
argument passed to printk(), which was sbi->dir_entries.

Fix this by replacing the message with "bogus number of directory
entries". printk() argument was kept unchanged.

Signed-off-by: Zheng Lv <lv.zheng.2015@gmail.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Zheng Lv and committed by
Jiri Kosina
34df1174 dcc381e8

+1 -1
+1 -1
fs/fat/inode.c
··· 1726 1726 sbi->dir_entries = bpb.fat_dir_entries; 1727 1727 if (sbi->dir_entries & (sbi->dir_per_block - 1)) { 1728 1728 if (!silent) 1729 - fat_msg(sb, KERN_ERR, "bogus directory-entries per block" 1729 + fat_msg(sb, KERN_ERR, "bogus number of directory entries" 1730 1730 " (%u)", sbi->dir_entries); 1731 1731 goto out_invalid; 1732 1732 }