From: Al Viro Date: Sat, 24 Dec 2005 08:09:03 +0000 (-0500) Subject: [PATCH] befs: missing fs32_to_cpu() in debug.c X-Git-Tag: v2.6.19-rc2~154 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e5201c58cd81066ecd0210bcc6c02e71200040a3;p=linux-2.6-omap-h63xx.git [PATCH] befs: missing fs32_to_cpu() in debug.c inode->mode is disk-endian Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/fs/befs/debug.c b/fs/befs/debug.c index 3afd0882fdb..bb68370f649 100644 --- a/fs/befs/debug.c +++ b/fs/befs/debug.c @@ -124,7 +124,7 @@ befs_dump_inode(const struct super_block *sb, befs_inode * inode) befs_debug(sb, " type %08x", fs32_to_cpu(sb, inode->type)); befs_debug(sb, " inode_size %u", fs32_to_cpu(sb, inode->inode_size)); - if (S_ISLNK(inode->mode)) { + if (S_ISLNK(fs32_to_cpu(sb, inode->mode))) { befs_debug(sb, " Symbolic link [%s]", inode->data.symlink); } else { int i;