diff --git a/backtrace_execinfo.cpp b/backtrace_execinfo.cpp index 36960430..5f6e1bb9 100644 --- a/backtrace_execinfo.cpp +++ b/backtrace_execinfo.cpp @@ -66,7 +66,7 @@ addr2line (const void *addr) return std::string (data.cbegin (), data.cend ()); #else - return "\n"; + return ""; #endif } @@ -81,7 +81,7 @@ debug::operator <<(std::ostream &os, const debug::backtrace &rhs) { str_t names (backtrace_symbols (frames.data (), trunc_cast (frames.size ())), ::free); for (unsigned int i = 0; i < frames.size (); ++i) - os << frames[i] << '\t' << names.get()[i] << '\t' << addr2line (frames[i]); + os << frames[i] << '\t' << names.get()[i] << '\t' << addr2line (frames[i]) << '\n'; return os; }