Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: net/disk_cache/blockfile/trace.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/disk_cache/blockfile/trace.h" 5 #include "net/disk_cache/blockfile/trace.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 memcpy(line, s_trace_buffer->buffer[current], kEntrySize); 159 memcpy(line, s_trace_buffer->buffer[current], kEntrySize);
160 line[kEntrySize] = '\0'; 160 line[kEntrySize] = '\0';
161 size_t length = strlen(line); 161 size_t length = strlen(line);
162 if (length) { 162 if (length) {
163 line[length] = '\n'; 163 line[length] = '\n';
164 line[length + 1] = '\0'; 164 line[length + 1] = '\0';
165 DebugOutput(line); 165 DebugOutput(line);
166 } 166 }
167 167
168 current++; 168 current++;
169 if (current == kNumberOfEntries) 169 if (current == kNumberOfEntries)
170 current = 0; 170 current = 0;
171 } 171 }
172 } 172 }
173 173
174 DebugOutput("End of Traces\n"); 174 DebugOutput("End of Traces\n");
175 } 175 }
176 176
177 #else // ENABLE_TRACING 177 #else // ENABLE_TRACING
178 178
179 void InitTrace(void) { 179 void InitTrace(void) {
180 return; 180 return;
181 } 181 }
182 182
183 void DestroyTrace(void) { 183 void DestroyTrace(void) {
184 s_trace_object = NULL; 184 s_trace_object = NULL;
185 } 185 }
186 186
187 void Trace(const char* format, ...) { 187 void Trace(const char* format, ...) {
188 } 188 }
189 189
190 #endif // ENABLE_TRACING 190 #endif // ENABLE_TRACING
191 191
192 } // namespace disk_cache 192 } // namespace disk_cache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698