Skip to contentSkip to conversation

befs: missing fs32_to_cpu() in debug.c

PATCH In review Al Viro 1 participant 1 message Oct 10, 2006 Befs file system

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 7/16 befs: missing fs32_to_cpu() in debug.c

Date: Sat, 24 Dec 2005 03:09:03 -0500

inode->mode is disk-endian

---
 fs/befs/debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/befs/debug.c +1 -1
index 3afd088..bb68370 100644
@@ -124,7 +124,7 @@ #ifdef CONFIG_BEFS_DEBUG
 	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;
Signature · 1 line
1.4.2.GIT