@@ -1174,13 +1174,13 @@ bool Process::SetExitStatus(int status, const char *cstr) {
1174
1174
std::lock_guard<std::mutex> guard (m_exit_status_mutex);
1175
1175
1176
1176
Log *log (GetLog (LLDBLog::State | LLDBLog::Process));
1177
- LLDB_LOG (log , " (plugin = %s status=%i (0x%8.8x), description=%s%s%s)" ,
1177
+ LLDB_LOGF (log , " (plugin = %s status=%i (0x%8.8x), description=%s%s%s)" ,
1178
1178
GetPluginName ().data (), status, status, cstr ? " \" " : " " ,
1179
1179
cstr ? cstr : " NULL" , cstr ? " \" " : " " );
1180
1180
1181
1181
// We were already in the exited state
1182
1182
if (m_private_state.GetValue () == eStateExited) {
1183
- LLDB_LOG (log ,
1183
+ LLDB_LOGF (log ,
1184
1184
" (plugin = %s) ignoring exit status because state was already set "
1185
1185
" to eStateExited" ,
1186
1186
GetPluginName ().data ());
@@ -1467,7 +1467,7 @@ void Process::SetPublicState(StateType new_state, bool restarted) {
1467
1467
}
1468
1468
1469
1469
Log *log (GetLog (LLDBLog::State | LLDBLog::Process));
1470
- LLDB_LOG (log , " (plugin = %s, state = %s, restarted = %i)" ,
1470
+ LLDB_LOGF (log , " (plugin = %s, state = %s, restarted = %i)" ,
1471
1471
GetPluginName ().data (), StateAsCString (new_state), restarted);
1472
1472
const StateType old_state = m_public_state.GetValue ();
1473
1473
m_public_state.SetValue (new_state);
@@ -1477,15 +1477,15 @@ void Process::SetPublicState(StateType new_state, bool restarted) {
1477
1477
// program to run.
1478
1478
if (!StateChangedIsExternallyHijacked ()) {
1479
1479
if (new_state == eStateDetached) {
1480
- LLDB_LOG (log ,
1480
+ LLDB_LOGF (log ,
1481
1481
" (plugin = %s, state = %s) -- unlocking run lock for detach" ,
1482
1482
GetPluginName ().data (), StateAsCString (new_state));
1483
1483
m_public_run_lock.SetStopped ();
1484
1484
} else {
1485
1485
const bool old_state_is_stopped = StateIsStoppedState (old_state, false );
1486
1486
if ((old_state_is_stopped != new_state_is_stopped)) {
1487
1487
if (new_state_is_stopped && !restarted) {
1488
- LLDB_LOG (log , " (plugin = %s, state = %s) -- unlocking run lock" ,
1488
+ LLDB_LOGF (log , " (plugin = %s, state = %s) -- unlocking run lock" ,
1489
1489
GetPluginName ().data (), StateAsCString (new_state));
1490
1490
m_public_run_lock.SetStopped ();
1491
1491
}
@@ -1496,10 +1496,10 @@ void Process::SetPublicState(StateType new_state, bool restarted) {
1496
1496
1497
1497
Status Process::Resume () {
1498
1498
Log *log (GetLog (LLDBLog::State | LLDBLog::Process));
1499
- LLDB_LOG (log , " (plugin = %s) -- locking run lock" , GetPluginName ().data ());
1499
+ LLDB_LOGF (log , " (plugin = %s) -- locking run lock" , GetPluginName ().data ());
1500
1500
if (!m_public_run_lock.TrySetRunning ()) {
1501
1501
Status error (" Resume request failed - process still running." );
1502
- LLDB_LOG (log , " (plugin = %s) -- TrySetRunning failed, not resuming." ,
1502
+ LLDB_LOGF (log , " (plugin = %s) -- TrySetRunning failed, not resuming." ,
1503
1503
GetPluginName ().data ());
1504
1504
return error;
1505
1505
}
@@ -1573,7 +1573,7 @@ void Process::SetPrivateState(StateType new_state) {
1573
1573
Log *log (GetLog (LLDBLog::State | LLDBLog::Process | LLDBLog::Unwind));
1574
1574
bool state_changed = false ;
1575
1575
1576
- LLDB_LOG (log , " (plugin = %s, state = %s)" , GetPluginName ().data (),
1576
+ LLDB_LOGF (log , " (plugin = %s, state = %s)" , GetPluginName ().data (),
1577
1577
StateAsCString (new_state));
1578
1578
1579
1579
std::lock_guard<std::recursive_mutex> thread_guard (m_thread_list.GetMutex ());
@@ -1615,14 +1615,14 @@ void Process::SetPrivateState(StateType new_state) {
1615
1615
if (!m_mod_id.IsLastResumeForUserExpression ())
1616
1616
m_mod_id.SetStopEventForLastNaturalStopID (event_sp);
1617
1617
m_memory_cache.Clear ();
1618
- LLDB_LOG (log , " (plugin = %s, state = %s, stop_id = %u" ,
1618
+ LLDB_LOGF (log , " (plugin = %s, state = %s, stop_id = %u" ,
1619
1619
GetPluginName ().data (), StateAsCString (new_state),
1620
1620
m_mod_id.GetStopID ());
1621
1621
}
1622
1622
1623
1623
m_private_state_broadcaster.BroadcastEvent (event_sp);
1624
1624
} else {
1625
- LLDB_LOG (log , " (plugin = %s, state = %s) state didn't change. Ignoring..." ,
1625
+ LLDB_LOGF (log , " (plugin = %s, state = %s) state didn't change. Ignoring..." ,
1626
1626
GetPluginName ().data (), StateAsCString (new_state));
1627
1627
}
1628
1628
}
0 commit comments