summaryrefslogtreecommitdiff
path: root/fs/jfs/jfs_logmgr.c
diff options
context:
space:
mode:
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>2007-06-13 15:17:50 (GMT)
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>2007-06-13 15:17:50 (GMT)
commit288e4d838d1e999c0515f85a337cacb2be233071 (patch)
tree45b7a24ccc679310c28b1edbb2633c1739d50afc /fs/jfs/jfs_logmgr.c
parent209e101bf408a50acc426e32c8252daefacde5b0 (diff)
downloadlinux-288e4d838d1e999c0515f85a337cacb2be233071.tar.xz
JFS: Update print_hex_dump() syntax
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Diffstat (limited to 'fs/jfs/jfs_logmgr.c')
-rw-r--r--fs/jfs/jfs_logmgr.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c
index 2917ede..de3e4a5 100644
--- a/fs/jfs/jfs_logmgr.c
+++ b/fs/jfs/jfs_logmgr.c
@@ -1626,22 +1626,22 @@ void jfs_flush_journal(struct jfs_log *log, int wait)
list_for_each_entry(lp, &log->synclist, synclist) {
if (lp->xflag & COMMIT_PAGE) {
struct metapage *mp = (struct metapage *)lp;
- printk (KERN_ERR "orphan metapage:\n");
- print_hex_dump(KERN_ERR, DUMP_PREFIX_ADDRESS,
- lp, sizeof(struct metapage));
- printk (KERN_ERR "page:\n");
- print_hex_dump(KERN_ERR, DUMP_PREFIX_ADDRESS,
- mp->page, sizeof(struct page));
- }
- else {
- printk (KERN_ERR "orphan tblock:\n");
- print_hex_dump(KERN_ERR, DUMP_PREFIX_ADDRESS,
- lp, sizeof(struct tblock));
- }
+ print_hex_dump(KERN_ERR, "metapage: ",
+ DUMP_PREFIX_ADDRESS, 16, 4,
+ mp, sizeof(struct metapage), 0);
+ print_hex_dump(KERN_ERR, "page: ",
+ DUMP_PREFIX_ADDRESS, 16,
+ sizeof(long), mp->page,
+ sizeof(struct page), 0);
+ } else
+ print_hex_dump(KERN_ERR, "tblock:",
+ DUMP_PREFIX_ADDRESS, 16, 4,
+ lp, sizeof(struct tblock), 0);
}
}
+#else
+ WARN_ON(!list_empty(&log->synclist));
#endif
- //assert(list_empty(&log->synclist));
clear_bit(log_FLUSH, &log->flag);
}