[Lldb-commits] [lldb] r211655 - Remove extra newline from log Printf

Ed Maste emaste at freebsd.org
Tue Jun 24 17:38:36 PDT 2014


Author: emaste
Date: Tue Jun 24 19:38:35 2014
New Revision: 211655

URL: http://llvm.org/viewvc/llvm-project?rev=211655&view=rev
Log:
Remove extra newline from log Printf

Clean up this one specifically, as it has the effect of double-spacing
the list of thread stop reasons, and substantially bloats the log file
when opening a core with hundreds of threads.

There are other cases of extra newlines.  Some of them do increase
readability, so avoid a general sweep for now.

Modified:
    lldb/trunk/source/Target/Thread.cpp

Modified: lldb/trunk/source/Target/Thread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Thread.cpp?rev=211655&r1=211654&r2=211655&view=diff
==============================================================================
--- lldb/trunk/source/Target/Thread.cpp (original)
+++ lldb/trunk/source/Target/Thread.cpp Tue Jun 24 19:38:35 2014
@@ -500,7 +500,7 @@ Thread::SetStopInfo (const lldb::StopInf
         m_stop_info_stop_id = UINT32_MAX;
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_THREAD));
     if (log)
-        log->Printf("%p: tid = 0x%" PRIx64 ": stop info = %s (stop_id = %u)\n",
+        log->Printf("%p: tid = 0x%" PRIx64 ": stop info = %s (stop_id = %u)",
                     static_cast<void*>(this), GetID(),
                     stop_info_sp ? stop_info_sp->GetDescription() : "<NULL>",
                     m_stop_info_stop_id);





More information about the lldb-commits mailing list