@@ -1056,13 +1056,13 @@ bool Process::SetExitStatus(int status, const char *cstr) {
1056
1056
std::lock_guard<std::mutex> guard (m_exit_status_mutex);
1057
1057
1058
1058
Log *log (GetLog (LLDBLog::State | LLDBLog::Process));
1059
- LLDB_LOG (log, " (plugin = %s status=%i (0x%8.8x), description=%s%s%s)" ,
1059
+ LLDB_LOGF (log, " (plugin = %s status=%i (0x%8.8x), description=%s%s%s)" ,
1060
1060
GetPluginName ().data (), status, status, cstr ? " \" " : " " ,
1061
1061
cstr ? cstr : " NULL" , cstr ? " \" " : " " );
1062
1062
1063
1063
// We were already in the exited state
1064
1064
if (m_private_state.GetValue () == eStateExited) {
1065
- LLDB_LOG (log,
1065
+ LLDB_LOGF (log,
1066
1066
" (plugin = %s) ignoring exit status because state was already set "
1067
1067
" to eStateExited" ,
1068
1068
GetPluginName ().data ());
@@ -1317,7 +1317,7 @@ void Process::SetPublicState(StateType new_state, bool restarted) {
1317
1317
}
1318
1318
1319
1319
Log *log (GetLog (LLDBLog::State | LLDBLog::Process));
1320
- LLDB_LOG (log, " (plugin = %s, state = %s, restarted = %i)" ,
1320
+ LLDB_LOGF (log, " (plugin = %s, state = %s, restarted = %i)" ,
1321
1321
GetPluginName ().data (), StateAsCString (new_state), restarted);
1322
1322
const StateType old_state = m_public_state.GetValue ();
1323
1323
m_public_state.SetValue (new_state);
@@ -1327,15 +1327,15 @@ void Process::SetPublicState(StateType new_state, bool restarted) {
1327
1327
// program to run.
1328
1328
if (!StateChangedIsExternallyHijacked ()) {
1329
1329
if (new_state == eStateDetached) {
1330
- LLDB_LOG (log,
1330
+ LLDB_LOGF (log,
1331
1331
" (plugin = %s, state = %s) -- unlocking run lock for detach" ,
1332
1332
GetPluginName ().data (), StateAsCString (new_state));
1333
1333
m_public_run_lock.SetStopped ();
1334
1334
} else {
1335
1335
const bool old_state_is_stopped = StateIsStoppedState (old_state, false );
1336
1336
if ((old_state_is_stopped != new_state_is_stopped)) {
1337
1337
if (new_state_is_stopped && !restarted) {
1338
- LLDB_LOG (log, " (plugin = %s, state = %s) -- unlocking run lock" ,
1338
+ LLDB_LOGF (log, " (plugin = %s, state = %s) -- unlocking run lock" ,
1339
1339
GetPluginName ().data (), StateAsCString (new_state));
1340
1340
m_public_run_lock.SetStopped ();
1341
1341
}
@@ -1346,10 +1346,10 @@ void Process::SetPublicState(StateType new_state, bool restarted) {
1346
1346
1347
1347
Status Process::Resume () {
1348
1348
Log *log (GetLog (LLDBLog::State | LLDBLog::Process));
1349
- LLDB_LOG (log, " (plugin = %s) -- locking run lock" , GetPluginName ().data ());
1349
+ LLDB_LOGF (log, " (plugin = %s) -- locking run lock" , GetPluginName ().data ());
1350
1350
if (!m_public_run_lock.TrySetRunning ()) {
1351
1351
Status error (" Resume request failed - process still running." );
1352
- LLDB_LOG (log, " (plugin = %s) -- TrySetRunning failed, not resuming." ,
1352
+ LLDB_LOGF (log, " (plugin = %s) -- TrySetRunning failed, not resuming." ,
1353
1353
GetPluginName ().data ());
1354
1354
return error;
1355
1355
}
@@ -1423,7 +1423,7 @@ void Process::SetPrivateState(StateType new_state) {
1423
1423
Log *log (GetLog (LLDBLog::State | LLDBLog::Process | LLDBLog::Unwind));
1424
1424
bool state_changed = false ;
1425
1425
1426
- LLDB_LOG (log, " (plugin = %s, state = %s)" , GetPluginName ().data (),
1426
+ LLDB_LOGF (log, " (plugin = %s, state = %s)" , GetPluginName ().data (),
1427
1427
StateAsCString (new_state));
1428
1428
1429
1429
std::lock_guard<std::recursive_mutex> thread_guard (m_thread_list.GetMutex ());
@@ -1465,14 +1465,14 @@ void Process::SetPrivateState(StateType new_state) {
1465
1465
if (!m_mod_id.IsLastResumeForUserExpression ())
1466
1466
m_mod_id.SetStopEventForLastNaturalStopID (event_sp);
1467
1467
m_memory_cache.Clear ();
1468
- LLDB_LOG (log, " (plugin = %s, state = %s, stop_id = %u" ,
1468
+ LLDB_LOGF (log, " (plugin = %s, state = %s, stop_id = %u" ,
1469
1469
GetPluginName ().data (), StateAsCString (new_state),
1470
1470
m_mod_id.GetStopID ());
1471
1471
}
1472
1472
1473
1473
m_private_state_broadcaster.BroadcastEvent (event_sp);
1474
1474
} else {
1475
- LLDB_LOG (log, " (plugin = %s, state = %s) state didn't change. Ignoring..." ,
1475
+ LLDB_LOGF (log, " (plugin = %s, state = %s) state didn't change. Ignoring..." ,
1476
1476
GetPluginName ().data (), StateAsCString (new_state));
1477
1477
}
1478
1478
}
0 commit comments