patch-2.4.4 linux/fs/reiserfs/objectid.c

Next file: linux/fs/reiserfs/prints.c
Previous file: linux/fs/reiserfs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/fs/reiserfs/objectid.c linux/fs/reiserfs/objectid.c
@@ -18,8 +18,8 @@
 
 // find where objectid map starts
 #define objectid_map(s,rs) (old_format_only (s) ? \
-                         (__u32 *)((struct reiserfs_super_block_v1 *)rs + 1) :\
-			 (__u32 *)(rs + 1))
+                         (__u32 *)((struct reiserfs_super_block_v1 *)(rs) + 1) :\
+			 (__u32 *)((rs) + 1))
 
 
 #ifdef CONFIG_REISERFS_CHECK
@@ -27,7 +27,8 @@
 static void check_objectid_map (struct super_block * s, __u32 * map)
 {
     if (le32_to_cpu (map[0]) != 1)
-	reiserfs_panic (s, "vs-15010: check_objectid_map: map corrupted");
+	reiserfs_panic (s, "vs-15010: check_objectid_map: map corrupted: %lx",
+			le32_to_cpu (map[0]));
 
     // FIXME: add something else here
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)