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

Side by Side Diff: third_party/WebKit/Source/wtf/Assertions.cpp

Issue 2240043002: Remove WTF_LOG(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: foo Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2007-2009 Torch Mobile, Inc. 3 * Copyright (C) 2007-2009 Torch Mobile, Inc.
4 * Copyright (C) 2011 University of Szeged. All rights reserved. 4 * Copyright (C) 2011 University of Szeged. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 for (int i = 0; i < size; ++i) { 331 for (int i = 0; i < size; ++i) {
332 FrameToNameScope frameToName(stack[i]); 332 FrameToNameScope frameToName(stack[i]);
333 const int frameNumber = i + 1; 333 const int frameNumber = i + 1;
334 if (frameToName.nullableName()) 334 if (frameToName.nullableName())
335 printf_stderr_common("%-3d %p %s\n", frameNumber, stack[i], frameToN ame.nullableName()); 335 printf_stderr_common("%-3d %p %s\n", frameNumber, stack[i], frameToN ame.nullableName());
336 else 336 else
337 printf_stderr_common("%-3d %p\n", frameNumber, stack[i]); 337 printf_stderr_common("%-3d %p\n", frameNumber, stack[i]);
338 } 338 }
339 } 339 }
340 340
341 void WTFLog(WTFLogChannel* channel, const char* format, ...)
342 {
343 if (channel->state != WTFLogChannelOn)
344 return;
345
346 va_list args;
347 va_start(args, format);
348 vprintf_stderr_with_trailing_newline(format, args);
349 va_end(args);
350 }
351
352 void WTFLogAlways(const char* format, ...) 341 void WTFLogAlways(const char* format, ...)
353 { 342 {
354 va_list args; 343 va_list args;
355 va_start(args, format); 344 va_start(args, format);
356 vprintf_stderr_with_trailing_newline(format, args); 345 vprintf_stderr_with_trailing_newline(format, args);
357 va_end(args); 346 va_end(args);
358 } 347 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/Assertions.h ('k') | third_party/WebKit/Source/wtf/ScopedLogger.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698