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: Fif off_t format errors
Date Wed, 01 Feb 2012 05:31:12 GMT
TS-1084: Fif off_t format errors


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

Branch: refs/heads/master
Commit: 9308b7e188a0ef649984d2688c86f9f2b0b29f3e
Parents: ca39c70
Author: James Peach <jpeach@apache.org>
Authored: Tue Jan 31 21:27:54 2012 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Tue Jan 31 21:27:54 2012 -0800

----------------------------------------------------------------------
 iocore/cache/CacheVol.cc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9308b7e1/iocore/cache/CacheVol.cc
----------------------------------------------------------------------
diff --git a/iocore/cache/CacheVol.cc b/iocore/cache/CacheVol.cc
index 51facde..9f7da3e 100644
--- a/iocore/cache/CacheVol.cc
+++ b/iocore/cache/CacheVol.cc
@@ -344,9 +344,9 @@ CacheVC::scanObject(int event, Event * e)
     scan_fix_buffer_offset = partial_object_len;
   } else { // Normal case, where we ended on a object boundary.
     io.aiocb.aio_offset += ((char *)doc - buf->data()) + next_object_len;
-    Debug("cache_scan_truss", "next %p:scanObject %lld", this, io.aiocb.aio_offset);
+    Debug("cache_scan_truss", "next %p:scanObject %lld", this, (long long)io.aiocb.aio_offset);
     io.aiocb.aio_offset = next_in_map(vol, scan_vol_map, io.aiocb.aio_offset);
-    Debug("cache_scan_truss", "next_in_map %p:scanObject %lld", this, io.aiocb.aio_offset);
+    Debug("cache_scan_truss", "next_in_map %p:scanObject %lld", this, (long long)io.aiocb.aio_offset);
     io.aiocb.aio_nbytes = SCAN_BUF_SIZE;
     io.aiocb.aio_buf = buf->data();
     scan_fix_buffer_offset = 0;
@@ -364,8 +364,8 @@ Lread:
     io.aiocb.aio_nbytes = vol->skip + vol->len - io.aiocb.aio_offset;
   offset = 0;
   ink_assert(ink_aio_read(&io) >= 0);
-  Debug("cache_scan_truss", "read %p:scanObject %lld %lld", this, 
-    (off_t)io.aiocb.aio_offset, (off_t)io.aiocb.aio_nbytes);
+  Debug("cache_scan_truss", "read %p:scanObject %lld %zu", this,
+    (long long)io.aiocb.aio_offset, io.aiocb.aio_nbytes);
   return EVENT_CONT;
 
 Ldone:


Mime
View raw message