summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/trace.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-27 00:04:24 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-27 00:04:24 +0000
commit9fde2a2f20e1cbd68d88ae5769bb8018b9b4422e (patch)
treea1a7c0a71e057b93275dd29f390cafa3d9dff630 /net/disk_cache/trace.cc
parentefc7057308ae81e69861d37aaca33b67d5187284 (diff)
downloadchromium_src-9fde2a2f20e1cbd68d88ae5769bb8018b9b4422e.zip
chromium_src-9fde2a2f20e1cbd68d88ae5769bb8018b9b4422e.tar.gz
chromium_src-9fde2a2f20e1cbd68d88ae5769bb8018b9b4422e.tar.bz2
Implement sync IO for the disk cache, and temporarily redirect
async IO to be performed synchronously. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1414 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/trace.cc')
-rw-r--r--net/disk_cache/trace.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/disk_cache/trace.cc b/net/disk_cache/trace.cc
index c656cef..3aba306 100644
--- a/net/disk_cache/trace.cc
+++ b/net/disk_cache/trace.cc
@@ -70,7 +70,9 @@ void Trace(const char* format, ...) {
#if defined(OS_WIN)
vsprintf_s(s_trace_buffer->buffer[s_trace_buffer->current], format, ap);
#else
- NOTIMPLEMENTED();
+ vsnprintf(s_trace_buffer->buffer[s_trace_buffer->current],
+ sizeof(s_trace_buffer->buffer[s_trace_buffer->current]), format,
+ ap);
#endif
s_trace_buffer->num_traces++;
s_trace_buffer->current++;