trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1159666 - /trafficserver/traffic/trunk/lib/ts/Diags.cc
Date Fri, 19 Aug 2011 15:48:09 GMT
Author: zwoop
Date: Fri Aug 19 15:48:09 2011
New Revision: 1159666

URL: http://svn.apache.org/viewvc?rev=1159666&view=rev
Log:
TS-925 Consider switching from integer thread IDs to hex thread IDs

Author: Brian Geffon
Review: leif

Modified:
    trafficserver/traffic/trunk/lib/ts/Diags.cc

Modified: trafficserver/traffic/trunk/lib/ts/Diags.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/lib/ts/Diags.cc?rev=1159666&r1=1159665&r2=1159666&view=diff
==============================================================================
--- trafficserver/traffic/trunk/lib/ts/Diags.cc (original)
+++ trafficserver/traffic/trunk/lib/ts/Diags.cc Fri Aug 19 15:48:09 2011
@@ -211,7 +211,7 @@ Diags::print_va(const char *debug_tag, D
 
   // add the thread id
   pthread_t id = pthread_self();
-  end_of_format += snprintf(end_of_format, sizeof(format_buf), "{%" PRIu64 "} ", (uint64_t)
id);
+  end_of_format += snprintf(end_of_format, sizeof(format_buf), "{0x%" PRIx64 "} ", (uint64_t)
id);
 
   ////////////////////////////////
   // start with the user prefix //



Mime
View raw message