mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
Update declarations for all functions/methods that accept printf-style
stdarg formats to use __attribute__ format so the compiler can flag incorrect uses. Fix all incorrect uses. Most of these are innocuous, a few were resulting in crashes. llvm-svn: 140185
This commit is contained in:
@@ -167,7 +167,7 @@ ProcessInstanceInfo::DumpAsTableRow (Stream &s, Platform *platform, bool show_ar
|
||||
}
|
||||
else
|
||||
{
|
||||
s.Printf ("%-10s %.*-7s ",
|
||||
s.Printf ("%-10s %-7d %s ",
|
||||
platform->GetUserName (m_euid),
|
||||
(int)m_arch.GetTriple().getArchName().size(),
|
||||
m_arch.GetTriple().getArchName().data());
|
||||
@@ -1107,7 +1107,7 @@ Process::SetPrivateState (StateType new_state)
|
||||
else
|
||||
{
|
||||
if (log)
|
||||
log->Printf("Process::SetPrivateState (%s) state didn't change. Ignoring...", StateAsCString(new_state), StateAsCString(old_state));
|
||||
log->Printf("Process::SetPrivateState (%s) state didn't change. Ignoring...", StateAsCString(new_state));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2682,7 +2682,7 @@ Process::ShouldBroadcastEvent (Event *event_ptr)
|
||||
}
|
||||
|
||||
if (log)
|
||||
log->Printf ("Process::ShouldBroadcastEvent (%p) => %s", event_ptr, StateAsCString(state), return_value ? "YES" : "NO");
|
||||
log->Printf ("Process::ShouldBroadcastEvent (%p) => %s - %s", event_ptr, StateAsCString(state), return_value ? "YES" : "NO");
|
||||
return return_value;
|
||||
}
|
||||
|
||||
@@ -2830,8 +2830,7 @@ Process::HandlePrivateEvent (EventSP &event_sp)
|
||||
__FUNCTION__,
|
||||
GetID(),
|
||||
StateAsCString(new_state),
|
||||
StateAsCString (GetState ()),
|
||||
IsHijackedForEvent(eBroadcastBitStateChanged) ? "hijacked" : "public");
|
||||
StateAsCString (GetState ()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user