diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 00:04:24 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 00:04:24 +0000 |
commit | 9fde2a2f20e1cbd68d88ae5769bb8018b9b4422e (patch) | |
tree | a1a7c0a71e057b93275dd29f390cafa3d9dff630 /net/disk_cache/trace.cc | |
parent | efc7057308ae81e69861d37aaca33b67d5187284 (diff) | |
download | chromium_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.cc | 4 |
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++; |