Index: base/debug/stack_trace_posix.cc |
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc |
index 75dd10d3d75ce8cfaa9c0ef7c24d347067b9de64..2097853a0ae4e2e7f9ae8ca54d5ba90784cd2323 100644 |
--- a/base/debug/stack_trace_posix.cc |
+++ b/base/debug/stack_trace_posix.cc |
@@ -25,8 +25,6 @@ |
#include <AvailabilityMacros.h> |
#endif |
-#include <iostream> |
- |
#include "base/basictypes.h" |
#include "base/eintr_wrapper.h" |
#include "base/logging.h" |
@@ -170,7 +168,7 @@ void StackTrace::PrintBacktrace() const { |
std::vector<std::string> trace_strings; |
GetBacktraceStrings(trace_, count_, &trace_strings, NULL); |
for (size_t i = 0; i < trace_strings.size(); ++i) { |
- std::cerr << "\t" << trace_strings[i] << "\n"; |
+ fprintf(stderr, "\t%s\n", trace_strings[i].c_str()); |
} |
} |