trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject [2/2] git commit: TS-1084: Fix some format warnings
Date Wed, 01 Feb 2012 05:20:57 GMT
TS-1084: Fix some format warnings


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

Branch: refs/heads/master
Commit: 2e4136b2e7b278e2455ae5cc43cb196a71078a84
Parents: bed2ec9
Author: James Peach <jpeach@apache.org>
Authored: Tue Jan 31 21:15:06 2012 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Tue Jan 31 21:15:06 2012 -0800

----------------------------------------------------------------------
 iocore/hostdb/HostDB.cc |    4 ++--
 lib/ts/ink_cap.cc       |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/2e4136b2/iocore/hostdb/HostDB.cc
----------------------------------------------------------------------
diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index 6bf5a02..22e5616 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -575,7 +575,7 @@ probe(ProxyMutex *mutex, INK_MD5 & md5, const char *hostname, int
len, sockaddr
   if (hostdb_enable) {
     uint64_t folded_md5 = fold_md5(md5);
     HostDBInfo *r = hostDB.lookup_block(folded_md5, hostDB.levels);
-    Debug("hostdb", "probe %s %llX %d [ignore_timeout = %d]", hostname, folded_md5, !!r,
ignore_timeout);
+    Debug("hostdb", "probe %s %"PRIx64" %d [ignore_timeout = %d]", hostname, folded_md5,
!!r, ignore_timeout);
     if (r && md5[1] == r->md5_high) {
 
       // Check for timeout (fail probe)
@@ -653,7 +653,7 @@ HostDBContinuation::insert(unsigned int attl)
     attl = HOST_DB_MAX_TTL;
   r->ip_timeout_interval = attl;
   r->ip_timestamp = hostdb_current_interval;
-  Debug("hostdb", "inserting for: %s: (md5: %llX) now: %u timeout: %u ttl: %u", name, folded_md5,
r->ip_timestamp,
+  Debug("hostdb", "inserting for: %s: (md5: %"PRIx64") now: %u timeout: %u ttl: %u", name,
folded_md5, r->ip_timestamp,
         r->ip_timeout_interval, attl);
   return r;
 }

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/2e4136b2/lib/ts/ink_cap.cc
----------------------------------------------------------------------
diff --git a/lib/ts/ink_cap.cc b/lib/ts/ink_cap.cc
index 68ce81d..91005a1 100644
--- a/lib/ts/ink_cap.cc
+++ b/lib/ts/ink_cap.cc
@@ -41,7 +41,7 @@ DebugCapabilities(char const* tag) {
     Debug(tag,
       "uid=%u, gid=%u, euid=%u, egid=%u"
 #     if TS_USE_POSIX_CAP
-        ", caps %s core=%s thread=0x%x"
+        ", caps %s core=%s thread=0x%llx"
 #     endif
       ,static_cast<unsigned int>(getuid())
       ,static_cast<unsigned int>(getgid())
@@ -50,7 +50,7 @@ DebugCapabilities(char const* tag) {
 #     if TS_USE_POSIX_CAP
         ,caps_text
         ,prctl(PR_GET_DUMPABLE) != 1 ? "disabled" : "enabled"
-        ,pthread_self()
+        ,(unsigned long long)pthread_self()
 #     endif
     );
 


Mime
View raw message