summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Target.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/Target/Target.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/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index ab50e346e88..9fbf08bb890 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -527,8 +527,8 @@ Target::CreateWatchpoint(lldb::addr_t addr, size_t size, uint32_t type, Error &e
{
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_WATCHPOINTS));
if (log)
- log->Printf("Target::%s (addr = 0x%8.8llx size = %zu type = %u)\n",
- __FUNCTION__, addr, size, type);
+ log->Printf("Target::%s (addr = 0x%8.8llx size = %llu type = %u)\n",
+ __FUNCTION__, addr, (uint64_t)size, type);
WatchpointSP wp_sp;
if (!ProcessIsValid())
@@ -1235,7 +1235,7 @@ Target::ReadMemory (const Address& addr,
if (bytes_read == 0)
error.SetErrorStringWithFormat("read memory from 0x%llx failed", load_addr);
else
- error.SetErrorStringWithFormat("only %zu of %zu bytes were read from memory at 0x%llx", bytes_read, dst_len, load_addr);
+ error.SetErrorStringWithFormat("only %llu of %llu bytes were read from memory at 0x%llx", (uint64_t)bytes_read, (uint64_t)dst_len, load_addr);
}
}
if (bytes_read)
OpenPOWER on IntegriCloud