summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2011-09-20 21:44:10 +0000
committerJason Molenda <jmolenda@apple.com>2011-09-20 21:44:10 +0000
commitfd54b368ea4d1bd481ac4d203362c2a5556418d0 (patch)
tree3adaaf91c485565d39e32762804b69439977c8fd /lldb/source/Commands/CommandObjectThread.cpp
parent33e91a6cf7a66b83b29e842268bf9b0a1ef14711 (diff)
downloadbcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.tar.gz
bcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.zip
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
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index 612e1629d5e..292b963ab2a 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -436,7 +436,7 @@ public:
if (thread == NULL)
{
result.AppendErrorWithFormat ("Thread index %u is out of range (valid values are 0 - %u).\n",
- step_thread_idx, 0, num_threads);
+ step_thread_idx, num_threads);
result.SetStatus (eReturnStatusFailed);
return false;
}
@@ -944,7 +944,6 @@ public:
const uint32_t num_threads = process->GetThreadList().GetSize();
result.AppendErrorWithFormat ("Thread index %u is out of range (valid values are 0 - %u).\n",
m_options.m_thread_idx,
- 0,
num_threads);
result.SetStatus (eReturnStatusFailed);
return false;
@@ -1135,7 +1134,7 @@ public:
}
else if (command.GetArgumentCount() != 1)
{
- result.AppendErrorWithFormat("'%s' takes exactly one thread index argument:\nUsage: \n", m_cmd_name.c_str(), m_cmd_syntax.c_str());
+ result.AppendErrorWithFormat("'%s' takes exactly one thread index argument:\nUsage: %s\n", m_cmd_name.c_str(), m_cmd_syntax.c_str());
result.SetStatus (eReturnStatusFailed);
return false;
}
OpenPOWER on IntegriCloud