Updated Branches: refs/heads/master 338c00f3c -> 518e83808
Format off_t as long long Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/518e8380 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/518e8380 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/518e8380 Branch: refs/heads/master Commit: 518e838081efbe2a4536e1892ec573ee261e7f99 Parents: 338c00f Author: James Peach <[email protected]> Authored: Thu Oct 18 22:33:47 2012 -0700 Committer: James Peach <[email protected]> Committed: Thu Oct 18 22:33:47 2012 -0700 ---------------------------------------------------------------------- iocore/cache/Cache.cc | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/518e8380/iocore/cache/Cache.cc ---------------------------------------------------------------------- diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc index 6f7676c..a80ee35 100644 --- a/iocore/cache/Cache.cc +++ b/iocore/cache/Cache.cc @@ -1074,8 +1074,8 @@ Vol::init(char *s, off_t blocks, off_t dir_skip, bool clear) evacuate = (DLL<EvacuationBlock> *)ats_malloc(evac_len); memset(evacuate, 0, evac_len); - Debug("cache_init", "allocating %zu directory bytes for a %zu byte volume (%lf%%)", - vol_dirlen(this), this->len, (double)vol_dirlen(this) / (double)this->len * 100.0); + Debug("cache_init", "allocating %zu directory bytes for a %lld byte volume (%lf%%)", + vol_dirlen(this), (long long)this->len, (double)vol_dirlen(this) / (double)this->len * 100.0); raw_dir = (char *)ats_memalign(sysconf(_SC_PAGESIZE), vol_dirlen(this)); dir = (Dir *) (raw_dir + vol_headerlen(this)); header = (VolHeaderFooter *) raw_dir;
