You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by br...@apache.org on 2014/08/22 23:45:47 UTC

git commit: Clean up spdy debug message

Repository: trafficserver
Updated Branches:
  refs/heads/master de4180276 -> b0a34cbfe


Clean up spdy debug message


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/b0a34cbf
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/b0a34cbf
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/b0a34cbf

Branch: refs/heads/master
Commit: b0a34cbfeeee64ba0cbc016d54b35c0c365f0171
Parents: de41802
Author: Brian Geffon <br...@apache.org>
Authored: Fri Aug 22 14:45:37 2014 -0700
Committer: Brian Geffon <br...@apache.org>
Committed: Fri Aug 22 14:45:37 2014 -0700

----------------------------------------------------------------------
 proxy/spdy/SpdyClientSession.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b0a34cbf/proxy/spdy/SpdyClientSession.cc
----------------------------------------------------------------------
diff --git a/proxy/spdy/SpdyClientSession.cc b/proxy/spdy/SpdyClientSession.cc
index f0f8023..8dcfadb 100644
--- a/proxy/spdy/SpdyClientSession.cc
+++ b/proxy/spdy/SpdyClientSession.cc
@@ -420,10 +420,11 @@ spdy_read_fetch_body_callback(spdylay_session * /*session*/, int32_t stream_id,
       unsigned char digest[MD5_DIGEST_LENGTH];
       if (is_debug_tag_set("spdy")) {
         MD5_Final(digest, &req->recv_md5);
-        Debug("spdy", "----recv md5sum: ");
+        char md5_strbuf[MD5_DIGEST_LENGTH * 2 + 1];
         for (int i = 0; i < MD5_DIGEST_LENGTH; i++) {
-          Debug("spdy", "%02x", digest[i]);
+          snprintf(md5_strbuf + (i * 2), 3 /* null byte counts towards the limit */, "%02x", digest[i]);
         }
+        Debug("spdy", "----recv md5sum: %s", md5_strbuf);
       }
       *eof = 1;
       sm->cleanup_request(stream_id);