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/CommandObjectWatchpoint.cpp | |
parent | 05d3bf77a1af49e8f6513729e4ccce780ffae4bb (diff) | |
download | llvm-d01b2953fac73977de3bc97e72ea04ad1ec6600f.zip llvm-d01b2953fac73977de3bc97e72ea04ad1ec6600f.tar.gz llvm-d01b2953fac73977de3bc97e72ea04ad1ec6600f.tar.bz2 |
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/CommandObjectWatchpoint.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectWatchpoint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectWatchpoint.cpp b/lldb/source/Commands/CommandObjectWatchpoint.cpp index d3b2243..8d907ae 100644 --- a/lldb/source/Commands/CommandObjectWatchpoint.cpp +++ b/lldb/source/Commands/CommandObjectWatchpoint.cpp @@ -1096,7 +1096,7 @@ protected: output_stream.EOL(); result.SetStatus(eReturnStatusSuccessFinishResult); } else { - result.AppendErrorWithFormat("Watchpoint creation failed (addr=0x%llx, size=%lu, variable expression='%s').\n", + result.AppendErrorWithFormat("Watchpoint creation failed (addr=0x%" PRIx64 ", size=%lu, variable expression='%s').\n", addr, size, command.GetArgumentAtIndex(0)); if (error.AsCString(NULL)) result.AppendError(error.AsCString()); @@ -1286,7 +1286,7 @@ protected: output_stream.EOL(); result.SetStatus(eReturnStatusSuccessFinishResult); } else { - result.AppendErrorWithFormat("Watchpoint creation failed (addr=0x%llx, size=%lu).\n", + result.AppendErrorWithFormat("Watchpoint creation failed (addr=0x%" PRIx64 ", size=%lu).\n", addr, size); if (error.AsCString(NULL)) result.AppendError(error.AsCString()); |