summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 20:55:35 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 20:55:35 +0000
commit0e9981e59506eddcbb66a23cf11639e983553e61 (patch)
treec74f0da28d187ffb05ce74c624a56859d4dfed95 /base
parentd11f566be9d149ea081607d0dbb12be7aebb4de6 (diff)
downloadchromium_src-0e9981e59506eddcbb66a23cf11639e983553e61.zip
chromium_src-0e9981e59506eddcbb66a23cf11639e983553e61.tar.gz
chromium_src-0e9981e59506eddcbb66a23cf11639e983553e61.tar.bz2
Print allocation callstacks to LOG(ERROR) rather than std err, since otherwise it doesn't show up inline in the log file.
Review URL: http://codereview.chromium.org/391029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31822 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/leak_tracker.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/leak_tracker.h b/base/leak_tracker.h
index de6ff29..ed3f38b 100644
--- a/base/leak_tracker.h
+++ b/base/leak_tracker.h
@@ -90,7 +90,7 @@ class LeakTracker : public LinkNode<LeakTracker<T> > {
++count;
LOG(ERROR) << "Leaked " << node << " which was allocated by:";
- allocation_stack.PrintBacktrace();
+ allocation_stack.OutputToStream(&LOG(ERROR));
}
CHECK(0u == count);