trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject svn commit: r1212343 - in /trafficserver/traffic/trunk: CHANGES proxy/FetchSM.h
Date Fri, 09 Dec 2011 11:56:41 GMT
Author: igalic
Date: Fri Dec  9 11:56:40 2011
New Revision: 1212343

URL: http://svn.apache.org/viewvc?rev=1212343&view=rev
Log:
[TS-1042] correct debug message in FetchSM
Author: James Peach
Test/Review: igalic

TIL (again) about printf(3)'s "precision", but more importantly about: "field width"


Modified:
    trafficserver/traffic/trunk/CHANGES
    trafficserver/traffic/trunk/proxy/FetchSM.h

Modified: trafficserver/traffic/trunk/CHANGES
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/CHANGES?rev=1212343&r1=1212342&r2=1212343&view=diff
==============================================================================
--- trafficserver/traffic/trunk/CHANGES (original)
+++ trafficserver/traffic/trunk/CHANGES Fri Dec  9 11:56:40 2011
@@ -1,5 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 3.1.2
+  *) [TS-1042] correct debug message in FetchSM
+   Author: James Peach
+
   *) [TS-1039] use pcre-config to find libpcre
    Author: James Peach
 

Modified: trafficserver/traffic/trunk/proxy/FetchSM.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/FetchSM.h?rev=1212343&r1=1212342&r2=1212343&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/FetchSM.h (original)
+++ trafficserver/traffic/trunk/proxy/FetchSM.h Fri Dec  9 11:56:40 2011
@@ -43,7 +43,9 @@ public:
   void init(Continuation* cont, TSFetchWakeUpOptions options, TSFetchEvent events, const
char* headers, int length, unsigned int ip, int port)
   {
     //_headers.assign(headers);
-    Debug("FetchSM", "[%s] FetchSM initialized for request with headers\n--\n%s\n--", __FUNCTION__,
headers);
+    Debug("FetchSM",
+	"[%s] FetchSM initialized for request with headers\n--\n%*.*s\n--",
+	__FUNCTION__, length, length, headers);
     req_finished = 0;
     resp_finished = 0;
     header_done = 0;



Mime
View raw message