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
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index afd00c5..ebfbb0f 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -600,7 +600,7 @@
str.Printf ("[<%s>]", names.GetData());
break;
case eArgRepeatRange:
- str.Printf ("<%s_1> .. <%s_n>", names.GetData());
+ str.Printf ("<%s_1> .. <%s_n>", names.GetData(), names.GetData());
break;
// Explicitly test for all the rest of the cases, so if new types get added we will notice the
// missing case statement(s).