diff options
author | Daniel Malea <daniel.malea@intel.com> | 2012-11-29 21:49:15 +0000 |
---|---|---|
committer | Daniel Malea <daniel.malea@intel.com> | 2012-11-29 21:49:15 +0000 |
commit | d01b2953fac73977de3bc97e72ea04ad1ec6600f (patch) | |
tree | 1883eeb5c13d5a2aa557d50eb40a0e08f43a8ec1 /lldb/source/Commands/CommandObjectThread.cpp | |
parent | 05d3bf77a1af49e8f6513729e4ccce780ffae4bb (diff) | |
download | bcm5719-llvm-d01b2953fac73977de3bc97e72ea04ad1ec6600f.tar.gz bcm5719-llvm-d01b2953fac73977de3bc97e72ea04ad1ec6600f.zip |
Resolve printf formatting warnings on Linux:
- use macros from inttypes.h for format strings instead of OS-specific types
Patch from Matt Kopec!
llvm-svn: 168945
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 0547d38fe4d..f555b624e11 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -548,7 +548,7 @@ protected: // } process->GetThreadList().SetSelectedThreadByID (thread->GetID()); result.SetDidChangeProcessState (true); - result.AppendMessageWithFormat ("Process %llu %s\n", process->GetID(), StateAsCString (state)); + result.AppendMessageWithFormat ("Process %" PRIu64 " %s\n", process->GetID(), StateAsCString (state)); result.SetStatus (eReturnStatusSuccessFinishNoResult); } else @@ -723,7 +723,7 @@ public: thread->SetResumeState (eStateSuspended); } } - result.AppendMessageWithFormat ("in process %llu\n", process->GetID()); + result.AppendMessageWithFormat ("in process %" PRIu64 "\n", process->GetID()); } } else @@ -741,7 +741,7 @@ public: Thread *thread = process->GetThreadList().GetThreadAtIndex(idx).get(); if (thread == current_thread) { - result.AppendMessageWithFormat ("Resuming thread 0x%4.4llx in process %llu\n", thread->GetID(), process->GetID()); + result.AppendMessageWithFormat ("Resuming thread 0x%4.4" PRIx64 " in process %" PRIu64 "\n", thread->GetID(), process->GetID()); thread->SetResumeState (eStateRunning); } else @@ -754,13 +754,13 @@ public: Error error (process->Resume()); if (error.Success()) { - result.AppendMessageWithFormat ("Process %llu resuming\n", process->GetID()); + result.AppendMessageWithFormat ("Process %" PRIu64 " resuming\n", process->GetID()); if (synchronous_execution) { state = process->WaitForProcessToStop (NULL); result.SetDidChangeProcessState (true); - result.AppendMessageWithFormat ("Process %llu %s\n", process->GetID(), StateAsCString (state)); + result.AppendMessageWithFormat ("Process %" PRIu64 " %s\n", process->GetID(), StateAsCString (state)); result.SetStatus (eReturnStatusSuccessFinishNoResult); } else @@ -1082,13 +1082,13 @@ protected: Error error (process->Resume ()); if (error.Success()) { - result.AppendMessageWithFormat ("Process %llu resuming\n", process->GetID()); + result.AppendMessageWithFormat ("Process %" PRIu64 " resuming\n", process->GetID()); if (synchronous_execution) { StateType state = process->WaitForProcessToStop (NULL); result.SetDidChangeProcessState (true); - result.AppendMessageWithFormat ("Process %llu %s\n", process->GetID(), StateAsCString (state)); + result.AppendMessageWithFormat ("Process %" PRIu64 " %s\n", process->GetID(), StateAsCString (state)); result.SetStatus (eReturnStatusSuccessFinishNoResult); } else |