aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/osdmap.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-12-14 18:13:47 -0500
committerSage Weil <sage@newdream.net>2009-12-21 19:39:52 -0500
commit9ec7cab14e6de732d4e7c355fe67c5810c32c758 (patch)
tree2f512034bc7db2b4ca8fe47ceea06ac99a8cab40 /fs/ceph/osdmap.c
parent93c20d98c29ccefa039c3843ccc37122caaf3d31 (diff)
ceph: hex dump corrupt server data to KERN_DEBUG
Also, print fsid using standard format, NOT hex dump. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/osdmap.c')
-rw-r--r--fs/ceph/osdmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/osdmap.c b/fs/ceph/osdmap.c
index be5318aa7714..8c8ffe5ef7d4 100644
--- a/fs/ceph/osdmap.c
+++ b/fs/ceph/osdmap.c
@@ -726,6 +726,9 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end,
726bad: 726bad:
727 pr_err("corrupt inc osdmap epoch %d off %d (%p of %p-%p)\n", 727 pr_err("corrupt inc osdmap epoch %d off %d (%p of %p-%p)\n",
728 epoch, (int)(*p - start), *p, start, end); 728 epoch, (int)(*p - start), *p, start, end);
729 print_hex_dump(KERN_DEBUG, "osdmap: ",
730 DUMP_PREFIX_OFFSET, 16, 1,
731 start, end - start, true);
729 if (newcrush) 732 if (newcrush)
730 crush_destroy(newcrush); 733 crush_destroy(newcrush);
731 return ERR_PTR(err); 734 return ERR_PTR(err);