Skip to content

Commit b4cf9c3

Browse files
vegardLinus Torvalds
authored andcommitted
FAT: Fix printk format strings
This makes sure printk format strings contain no more than a single line. Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com> [the message was tweaked.] Signed-off-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>
1 parent f74596d commit b4cf9c3

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

‎fs/fat/inode.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,10 +1295,8 @@ int fat_fill_super(struct super_block *sb, void *data, int silent,
12951295

12961296
fsinfo = (struct fat_boot_fsinfo *)fsinfo_bh->b_data;
12971297
if (!IS_FSINFO(fsinfo)) {
1298-
printk(KERN_WARNING
1299-
"FAT: Did not find valid FSINFO signature.\n"
1300-
" Found signature1 0x%08x signature2 0x%08x"
1301-
" (sector = %lu)\n",
1298+
printk(KERN_WARNING "FAT: Invalid FSINFO signature: "
1299+
"0x%08x, 0x%08x (sector = %lu)\n",
13021300
le32_to_cpu(fsinfo->signature1),
13031301
le32_to_cpu(fsinfo->signature2),
13041302
sbi->fsinfo_sector);

‎fs/fat/misc.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ void fat_clusters_flush(struct super_block *sb)
5555
fsinfo = (struct fat_boot_fsinfo *)bh->b_data;
5656
/* Sanity check */
5757
if (!IS_FSINFO(fsinfo)) {
58-
printk(KERN_ERR "FAT: Did not find valid FSINFO signature.\n"
59-
" Found signature1 0x%08x signature2 0x%08x"
60-
" (sector = %lu)\n",
58+
printk(KERN_ERR "FAT: Invalid FSINFO signature: "
59+
"0x%08x, 0x%08x (sector = %lu)\n",
6160
le32_to_cpu(fsinfo->signature1),
6261
le32_to_cpu(fsinfo->signature2),
6362
sbi->fsinfo_sector);

0 commit comments

Comments
 (0)