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:
Jason Molenda
2011-09-20 21:44:10 +00:00
parent 33e91a6cf7
commit fd54b368ea
69 changed files with 175 additions and 183 deletions

View File

@@ -1018,7 +1018,7 @@ Thread::UpdateInstanceName ()
if (name && name[0] != '\0')
sstr.Printf ("%s", name);
else if ((GetIndexID() != 0) || (GetID() != 0))
sstr.Printf ("0x%4.4x", GetIndexID(), GetID());
sstr.Printf ("0x%4.4x", GetIndexID());
if (sstr.GetSize() > 0)
Thread::GetSettingsController()->RenameInstanceSettings (GetInstanceName().AsCString(), sstr.GetData());