summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/EmulateInstruction.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-09-18 18:04:04 +0000
committerGreg Clayton <gclayton@apple.com>2012-09-18 18:04:04 +0000
commit43e0af06b4b69d784c87c4bfcaea01d825de1e65 (patch)
tree940b1223e3317439d1cbbd6e59f0421904d90c46 /lldb/source/Core/EmulateInstruction.cpp
parent402edbbe3918277bfedbd9f138c16ac515d8d9ef (diff)
downloadbcm5719-llvm-43e0af06b4b69d784c87c4bfcaea01d825de1e65.tar.gz
bcm5719-llvm-43e0af06b4b69d784c87c4bfcaea01d825de1e65.zip
Stop using the "%z" size_t modifier and cast all size_t values to uint64_t. Some platforms don't support this modification.
llvm-svn: 164148
Diffstat (limited to 'lldb/source/Core/EmulateInstruction.cpp')
-rw-r--r--lldb/source/Core/EmulateInstruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/EmulateInstruction.cpp b/lldb/source/Core/EmulateInstruction.cpp
index f17924747d8..0e94e67b8d8 100644
--- a/lldb/source/Core/EmulateInstruction.cpp
+++ b/lldb/source/Core/EmulateInstruction.cpp
@@ -361,7 +361,7 @@ EmulateInstruction::ReadMemoryDefault (EmulateInstruction *instruction,
size_t length)
{
StreamFile strm (stdout, false);
- strm.Printf (" Read from Memory (address = 0x%llx, length = %zu, context = ", addr, length);
+ strm.Printf (" Read from Memory (address = 0x%llx, length = %llu, context = ", addr, (uint64_t)length);
context.Dump (strm, instruction);
strm.EOL();
*((uint64_t *) dst) = 0xdeadbeef;
@@ -377,7 +377,7 @@ EmulateInstruction::WriteMemoryDefault (EmulateInstruction *instruction,
size_t length)
{
StreamFile strm (stdout, false);
- strm.Printf (" Write to Memory (address = 0x%llx, length = %zu, context = ", addr, length);
+ strm.Printf (" Write to Memory (address = 0x%llx, length = %llu, context = ", addr, (uint64_t)length);
context.Dump (strm, instruction);
strm.EOL();
return length;
OpenPOWER on IntegriCloud