[Lldb-commits] [lldb] r294024 - Fix incorrect logging in ThreadPlan::ShouldReportStop

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 3 10:50:45 PST 2017


Author: labath
Date: Fri Feb  3 12:50:45 2017
New Revision: 294024

URL: http://llvm.org/viewvc/llvm-project?rev=294024&view=rev
Log:
Fix incorrect logging in ThreadPlan::ShouldReportStop

it used printf with formatv style specifications. Also, switch to
LLDB_LOG.

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

Modified: lldb/trunk/source/Target/ThreadPlan.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/ThreadPlan.cpp?rev=294024&r1=294023&r2=294024&view=diff
==============================================================================
--- lldb/trunk/source/Target/ThreadPlan.cpp (original)
+++ lldb/trunk/source/Target/ThreadPlan.cpp Fri Feb  3 12:50:45 2017
@@ -76,14 +76,11 @@ Vote ThreadPlan::ShouldReportStop(Event
     ThreadPlan *prev_plan = GetPreviousPlan();
     if (prev_plan) {
       Vote prev_vote = prev_plan->ShouldReportStop(event_ptr);
-      if (log)
-        log->Format(__FILE__, __FUNCTION__,
-                    "returning previous thread plan vote: {0}", prev_vote);
+      LLDB_LOG(log, "returning previous thread plan vote: {0}", prev_vote);
       return prev_vote;
     }
   }
-  if (log)
-    log->Printf("Returning vote: {0}", m_stop_vote);
+  LLDB_LOG(log, "Returning vote: {0}", m_stop_vote);
   return m_stop_vote;
 }
 




More information about the lldb-commits mailing list