diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-09-22 19:48:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:58 -0400 |
commit | a4255e4c1c41f906488ae4d3fa328a66695cf200 (patch) | |
tree | b713adf4a063c2bc08b0bd388bbf4432a0363be9 | |
parent | 9f6c1333938c5d93da8be8f29f3b5469a3c00f95 (diff) |
ext2: fix format string compile warning (ino_t)
Unlike on most other architectures ino_t is an unsigned int on s390. So
add an explicit cast to avoid this compile warning:
fs/ext2/namei.c: In function 'ext2_lookup':
fs/ext2/namei.c:73: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'ino_t'
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/ext2/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c index 23701f289e98..dd7175ce5606 100644 --- a/fs/ext2/namei.c +++ b/fs/ext2/namei.c | |||
@@ -70,7 +70,7 @@ static struct dentry *ext2_lookup(struct inode * dir, struct dentry *dentry, str | |||
70 | if (PTR_ERR(inode) == -ESTALE) { | 70 | if (PTR_ERR(inode) == -ESTALE) { |
71 | ext2_error(dir->i_sb, __func__, | 71 | ext2_error(dir->i_sb, __func__, |
72 | "deleted inode referenced: %lu", | 72 | "deleted inode referenced: %lu", |
73 | ino); | 73 | (unsigned long) ino); |
74 | return ERR_PTR(-EIO); | 74 | return ERR_PTR(-EIO); |
75 | } else { | 75 | } else { |
76 | return ERR_CAST(inode); | 76 | return ERR_CAST(inode); |