fat-fs printk arg. fix
PATCH 1/1 fat-fs printk arg. fix
Hi,
A recent fatfs patch for large partitions upset printk. Here's a patch for it.
--
~Randy
patch_name: fat-printk.patchpatch_version: 2003-06-03.15:37:48
author: Randy.Dunlap <[email protected]>
description: printk() args are unhappy with recent change for large
partition support;
product: Linuxproduct_versions: 2.5.70
maintainer: OGAWA Hirofumi
diffstat: =
fs/fat/misc.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
fs/fat/misc.c renamed from fs/fat/misc.c%PRTK +1 -1
@@ -311,7 +311,7 @@ *bh =sb_bread (sb, phys);if (*bh ==NULL ) {printk (KERN_ERR "FAT: Directory bread(block %llu) failed\n" , - phys); + (u64 )phys);/* skip this block */ *pos = (iblock +1 ) << sb->s_blocksize_bits; goto next;
fs/fat/misc.c line 314
Quoted 4 lines · Randy.Dunlap
fs/fat/misc.c renamed from fs/fat/misc.c%PRTK +1
-1printk (KERN_ERR "FAT: Directory bread(block %llu) failed\n" , - phys); + (u64 )phys);
The printk control string says, precisely, "unsigned long long". So that is what we should be casting the argument to.
I have made that change, thanks.
OGAWA Hirofumi
maintainerfs/fat/misc.c line 317
Quoted 6 lines · Randy.Dunlap
fs/fat/misc.c renamed from fs/fat/misc.c%PRTK +1
-1printk (KERN_ERR "FAT: Directory bread(block %llu) failed\n" , - phys); + (u64 )phys);/* skip this block */ *pos = (iblock +1 ) << sb->s_blocksize_bits; goto next;
I was forgeting that issue of sector_t with printk. Thanks for correcting.
Signature · 1 line
OGAWA Hirofumi <[email protected]>