Remove extra newline from log Printf
authorEd Maste <emaste@freebsd.org>
Wed, 25 Jun 2014 00:38:35 +0000 (00:38 +0000)
committerEd Maste <emaste@freebsd.org>
Wed, 25 Jun 2014 00:38:35 +0000 (00:38 +0000)
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.

llvm-svn: 211655

lldb/source/Target/Thread.cpp

index 400d992..c5c3698 100644 (file)
@@ -500,7 +500,7 @@ Thread::SetStopInfo (const lldb::StopInfoSP &stop_info_sp)
         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);