diff options
author | Sage Weil <sage@newdream.net> | 2009-12-14 15:13:47 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-12-21 16:39:52 -0800 |
commit | 9ec7cab14e6de732d4e7c355fe67c5810c32c758 (patch) | |
tree | 2f512034bc7db2b4ca8fe47ceea06ac99a8cab40 /fs/ceph/mdsmap.c | |
parent | 93c20d98c29ccefa039c3843ccc37122caaf3d31 (diff) | |
download | blackbird-op-linux-9ec7cab14e6de732d4e7c355fe67c5810c32c758.tar.gz blackbird-op-linux-9ec7cab14e6de732d4e7c355fe67c5810c32c758.zip |
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.c | 4 |
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) struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end) { struct ceph_mdsmap *m; + const void *start = *p; int i, j, n; int err = -EINVAL; u16 version; @@ -154,6 +155,9 @@ badmem: err = -ENOMEM; bad: pr_err("corrupt mdsmap\n"); + print_hex_dump(KERN_DEBUG, "mdsmap: ", + DUMP_PREFIX_OFFSET, 16, 1, + start, end - start, true); ceph_mdsmap_destroy(m); return ERR_PTR(-EINVAL); } |