Skip to content

Commit

Permalink
[PATCH] befs: missing fs32_to_cpu() in debug.c
Browse files Browse the repository at this point in the history
inode->mode is disk-endian

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 10, 2006
1 parent 1151895 commit e5201c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/befs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e5201c5

Please sign in to comment.