Updated Branches:
refs/heads/master 05360bcbc -> bed2ec91b
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/bed2ec91
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/bed2ec91
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/bed2ec91
Branch: refs/heads/master
Commit: bed2ec91bde2c5f187b30e5dd96416ca3780401a
Parents: a6682c5
Author: James Peach <jpeach@apache.org>
Authored: Tue Jan 31 21:08:06 2012 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Tue Jan 31 21:08:06 2012 -0800
----------------------------------------------------------------------
iocore/dns/P_DNSProcessor.h | 2 +-
iocore/hostdb/HostDB.cc | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/bed2ec91/iocore/dns/P_DNSProcessor.h
----------------------------------------------------------------------
diff --git a/iocore/dns/P_DNSProcessor.h b/iocore/dns/P_DNSProcessor.h
index 8127919..d4a584b 100644
--- a/iocore/dns/P_DNSProcessor.h
+++ b/iocore/dns/P_DNSProcessor.h
@@ -244,7 +244,7 @@ struct DNSHandler: public Continuation
{
if (is_debug_tag_set("dns")) {
Debug("dns", "failover_now: Considering immediate failover, target time is %" PRId64
"",
- HRTIME_SECONDS(dns_failover_period));
+ (ink_hrtime)HRTIME_SECONDS(dns_failover_period));
Debug("dns", "\tdelta time is %" PRId64 "", (ink_get_hrtime() - crossed_failover_number[i]));
}
return (crossed_failover_number[i] &&
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/bed2ec91/iocore/hostdb/HostDB.cc
----------------------------------------------------------------------
diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index d886b79..6bf5a02 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -80,7 +80,8 @@ static Queue <HostDBContinuation > remoteHostDBQueue[MULTI_CACHE_PARTITIONS];
static inline int
corrupt_debugging_callout(HostDBInfo * e, RebuildMC & r)
{
- Debug("hostdb", "corrupt %ld part %d", (char *) &e->app.rr.offset - r.data, r.partition);
+ Debug("hostdb", "corrupt %ld part %d",
+ (long)((char *) &e->app.rr.offset - r.data), r.partition);
return -1;
}
|