summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-02 06:03:43 +0000
committerkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-02 06:03:43 +0000
commit339350bdaf6fde5bf48b3ebc0fc9e8f90e23fba8 (patch)
tree7f6aa9bb5f59c824c317f85a6d8880f9b8b5bc5a /third_party
parent8ead6723fffaf86e99e978387c8a92c9d57299c6 (diff)
downloadchromium_src-339350bdaf6fde5bf48b3ebc0fc9e8f90e23fba8.zip
chromium_src-339350bdaf6fde5bf48b3ebc0fc9e8f90e23fba8.tar.gz
chromium_src-339350bdaf6fde5bf48b3ebc0fc9e8f90e23fba8.tar.bz2
Fix the logging. TCMalloc Log() does not recognize printf formatter.
It also appends new line automatically. Review URL: http://codereview.chromium.org/10262029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134870 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/tcmalloc/chromium/src/free_list.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/tcmalloc/chromium/src/free_list.cc b/third_party/tcmalloc/chromium/src/free_list.cc
index b4176da..47e6d69 100644
--- a/third_party/tcmalloc/chromium/src/free_list.cc
+++ b/third_party/tcmalloc/chromium/src/free_list.cc
@@ -68,14 +68,14 @@ using tcmalloc::kCrash;
// TODO(jar): We should use C++ rather than a macro here.
#define MEMORY_CHECK(v1, v2) \
- if (v1 != v2) Log(kCrash, __FILE__, __LINE__, "Memory corruption detected.\n")
+ if (v1 != v2) Log(kCrash, __FILE__, __LINE__, "Memory corruption detected.")
namespace {
void EnsureNonLoop(void* node, void* next) {
// We only have time to do minimal checking. We don't traverse the list, but
// only look for an immediate loop (cycle back to ourself).
if (node != next) return;
- Log(kCrash, __FILE__, __LINE__, "Circular loop in list detected: %p\n", next);
+ Log(kCrash, __FILE__, __LINE__, "Circular loop in list detected: ", next);
}
// Returns value of the |previous| pointer w/out running a sanity