aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mdsmap.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/mdsmap.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/mdsmap.c')
-rw-r--r--fs/ceph/mdsmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ceph/mdsmap.c b/fs/ceph/mdsmap.c
index cad8d25861e5..c4c498e6dfef 100644
--- a/fs/ceph/mdsmap.c
+++ b/fs/ceph/mdsmap.c
@@ -49,6 +49,7 @@ int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m)
49struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end) 49struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end)
50{ 50{
51 struct ceph_mdsmap *m; 51 struct ceph_mdsmap *m;
52 const void *start = *p;
52 int i, j, n; 53 int i, j, n;
53 int err = -EINVAL; 54 int err = -EINVAL;
54 u16 version; 55 u16 version;
@@ -154,6 +155,9 @@ badmem:
154 err = -ENOMEM; 155 err = -ENOMEM;
155bad: 156bad:
156 pr_err("corrupt mdsmap\n"); 157 pr_err("corrupt mdsmap\n");
158 print_hex_dump(KERN_DEBUG, "mdsmap: ",
159 DUMP_PREFIX_OFFSET, 16, 1,
160 start, end - start, true);
157 ceph_mdsmap_destroy(m); 161 ceph_mdsmap_destroy(m);
158 return ERR_PTR(-EINVAL); 162 return ERR_PTR(-EINVAL);
159} 163}