ext4: fix build warning when EXT4FS_DEBUG is on
authorPeng Tao <bergwolf@gmail.com>
Tue, 28 Jul 2009 01:44:40 +0000 (21:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 28 Jul 2009 01:44:40 +0000 (21:44 -0400)
commit785b4b3a5a992eeb8b495a89b6f690b383010aba
tree2b67b107c268529de56f09b0ef86691899de6b96
parent1c718505171b06dbb60eafcb3fddba877dae5f7b
ext4: fix build warning when EXT4FS_DEBUG is on

When compiling with EXT4FS_DEBUG on, gcc will complain with following warnings:

linux-2.6/fs/ext4/ialloc.c: In function ‘ext4_count_free_inodes’:
linux-2.6/fs/ext4/ialloc.c:1192: warning: format ‘%lu’ expects type
‘long unsigned int’, but argument 2 has type ‘ext4_group_t’

So add a type cast to suppress it.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ialloc.c