2009-03-31 11:55:21

by Alexander Beregalov

[permalink] [raw]
Subject: [PATCH next] ext4: fix printk format warning in inode.c

fs/ext4/inode.c:385: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long int'

Signed-off-by: Alexander Beregalov <[email protected]>
---

fs/ext4/inode.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 1d37d14..2fda129 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -382,7 +382,7 @@ static int __ext4_check_blockref(const char *function, struct inode *inode,
"block reference %u >= max (%u) "
"in inode #%lu, offset=%u",
*bref, maxblocks,
- inode->i_ino, bref-p);
+ inode->i_ino, (unsigned)(bref-p));
return -EIO;
}
bref++;


2009-03-31 12:37:29

by Theodore Ts'o

[permalink] [raw]
Subject: Re: [PATCH next] ext4: fix printk format warning in inode.c

On Tue, Mar 31, 2009 at 03:54:51PM +0400, Alexander Beregalov wrote:
> fs/ext4/inode.c:385: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long int'
>
> Signed-off-by: Alexander Beregalov <[email protected]>

Thanks, Thiemo has already sent a patch to fix this (as well as
another buglet).

- Ted