summaryrefslogtreecommitdiff
path: root/fs/jfs/jfs_logmgr.c
diff options
context:
space:
mode:
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>2007-06-06 16:30:17 -0500
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>2007-06-06 16:30:17 -0500
commit209e101bf408a50acc426e32c8252daefacde5b0 (patch)
tree9627c9273e35f142e58059aa85b77c0367c45315 /fs/jfs/jfs_logmgr.c
parentf720e3ba558680cc7dd3995d005bdc8ee2ef46af (diff)
JFS: use print_hex_dump() rather than private dump_mem() function
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.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c
index 88eae45a4644..2917ede90d67 100644
--- a/fs/jfs/jfs_logmgr.c
+++ b/fs/jfs/jfs_logmgr.c
@@ -1622,16 +1622,22 @@ void jfs_flush_journal(struct jfs_log *log, int wait)
if (!list_empty(&log->synclist)) {
struct logsyncblk *lp;
+ printk(KERN_ERR "jfs_flush_journal: synclist not empty\n");
list_for_each_entry(lp, &log->synclist, synclist) {
if (lp->xflag & COMMIT_PAGE) {
struct metapage *mp = (struct metapage *)lp;
- dump_mem("orphan metapage", lp,
- sizeof(struct metapage));
- dump_mem("page", mp->page, sizeof(struct page));
+ 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));
}
- else
- dump_mem("orphan tblock", lp,
- sizeof(struct tblock));
}
}
#endif