]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
clean up msgr in/out debug output
authorSage Weil <sage@newdream.net>
Tue, 22 Jan 2008 19:51:01 +0000 (11:51 -0800)
committerSage Weil <sage@newdream.net>
Tue, 22 Jan 2008 22:08:38 +0000 (14:08 -0800)
src/kernel/client.c
src/kernel/messenger.c

index 3339bb6ea51bb727e0ee5c57aed44b7ce668f464..af8b4d5ef40f9425477d16d90a38f8d3dda674c2 100644 (file)
@@ -321,10 +321,6 @@ void ceph_dispatch(void *p, struct ceph_msg *msg)
        struct ceph_client *client = p;
        int had;
 
-       dout(5, "===== %p ===== from %s%d type %d len %d+%d\n", msg,
-            ceph_name_type_str(msg->hdr.src.name.type), msg->hdr.src.name.num,
-            msg->hdr.type, msg->hdr.front_len, msg->hdr.data_len);
-
        /* deliver the message */
        switch (msg->hdr.type) {
                /* me */
index e7acf4b96e31dd29bc881d6d9e4423b4c91d2975..b4639bafd8d1951b0a76ad8dcb7321c53a8209b2 100644 (file)
@@ -923,6 +923,10 @@ more:
        if (con->in_tag == CEPH_MSGR_TAG_MSG) {
                ret = read_message_partial(con);
                if (ret <= 0) goto done;
+
+               dout(5, "===== %p from %s%d type %d len %d+%d =====\n", con->in_msg,
+                    ceph_name_type_str(con->in_msg->hdr.src.name.type), con->in_msg->hdr.src.name.num,
+                    con->in_msg->hdr.type, con->in_msg->hdr.front_len, con->in_msg->hdr.data_len);
                msgr->dispatch(con->msgr->parent, con->in_msg); /* fixme: use a workqueue */
                con->in_msg = 0;
                con->in_tag = CEPH_MSGR_TAG_READY;
@@ -1107,8 +1111,8 @@ int ceph_msg_send(struct ceph_messenger *msgr, struct ceph_msg *msg, unsigned lo
        /* queue */
        spin_lock(&con->out_queue_lock);
        msg->hdr.seq = ++con->out_seq;
-       dout(1, "----- %p ----- to %s%d type %d len %d+%d\n", msg,
-            ceph_name_type_str(msg->hdr.src.name.type), msg->hdr.src.name.num,
+       dout(1, "----- %p to %s%d type %d len %d+%d -----\n", msg,
+            ceph_name_type_str(msg->hdr.dst.name.type), msg->hdr.dst.name.num,
             msg->hdr.type, msg->hdr.front_len, msg->hdr.data_len);
        dout(1, "ceph_msg_send queuing %p seq %u for %s%d on %p\n", msg, msg->hdr.seq,
             ceph_name_type_str(msg->hdr.dst.name.type), msg->hdr.dst.name.num, con);