aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/osd_client.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/osd_client.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/osd_client.c')
-rw-r--r--fs/ceph/osd_client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/osd_client.c b/fs/ceph/osd_client.c
index 63482ef3de01..4bfe880d53c8 100644
--- a/fs/ceph/osd_client.c
+++ b/fs/ceph/osd_client.c
@@ -773,6 +773,7 @@ bad:
773 pr_err("corrupt osd_op_reply got %d %d expected %d\n", 773 pr_err("corrupt osd_op_reply got %d %d expected %d\n",
774 (int)msg->front.iov_len, le32_to_cpu(msg->hdr.front_len), 774 (int)msg->front.iov_len, le32_to_cpu(msg->hdr.front_len),
775 (int)sizeof(*rhead)); 775 (int)sizeof(*rhead));
776 ceph_msg_dump(msg);
776} 777}
777 778
778 779
@@ -964,6 +965,7 @@ done:
964 965
965bad: 966bad:
966 pr_err("osdc handle_map corrupt msg\n"); 967 pr_err("osdc handle_map corrupt msg\n");
968 ceph_msg_dump(msg);
967 up_write(&osdc->map_sem); 969 up_write(&osdc->map_sem);
968 return; 970 return;
969} 971}