diff options
author | Greg Clayton <gclayton@apple.com> | 2012-09-18 18:04:04 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-09-18 18:04:04 +0000 |
commit | 43e0af06b4b69d784c87c4bfcaea01d825de1e65 (patch) | |
tree | 940b1223e3317439d1cbbd6e59f0421904d90c46 /lldb/source/Core/Communication.cpp | |
parent | 402edbbe3918277bfedbd9f138c16ac515d8d9ef (diff) | |
download | bcm5719-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/Communication.cpp')
-rw-r--r-- | lldb/source/Core/Communication.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Core/Communication.cpp b/lldb/source/Core/Communication.cpp index 35af6440df2..64cc2f97ebd 100644 --- a/lldb/source/Core/Communication.cpp +++ b/lldb/source/Core/Communication.cpp @@ -136,10 +136,10 @@ size_t Communication::Read (void *dst, size_t dst_len, uint32_t timeout_usec, ConnectionStatus &status, Error *error_ptr) { lldb_private::LogIfAnyCategoriesSet (LIBLLDB_LOG_COMMUNICATION, - "%p Communication::Read (dst = %p, dst_len = %zu, timeout = %u usec) connection = %p", + "%p Communication::Read (dst = %p, dst_len = %llu, timeout = %u usec) connection = %p", this, dst, - dst_len, + (uint64_t)dst_len, timeout_usec, m_connection_sp.get()); @@ -210,10 +210,10 @@ Communication::Write (const void *src, size_t src_len, ConnectionStatus &status, Mutex::Locker (m_write_mutex); lldb_private::LogIfAnyCategoriesSet (LIBLLDB_LOG_COMMUNICATION, - "%p Communication::Write (src = %p, src_len = %zu) connection = %p", + "%p Communication::Write (src = %p, src_len = %llu) connection = %p", this, src, - src_len, + (uint64_t)src_len, connection_sp.get()); if (connection_sp.get()) @@ -295,8 +295,8 @@ void Communication::AppendBytesToCache (const uint8_t * bytes, size_t len, bool broadcast, ConnectionStatus status) { lldb_private::LogIfAnyCategoriesSet (LIBLLDB_LOG_COMMUNICATION, - "%p Communication::AppendBytesToCache (src = %p, src_len = %zu, broadcast = %i)", - this, bytes, len, broadcast); + "%p Communication::AppendBytesToCache (src = %p, src_len = %llu, broadcast = %i)", + this, bytes, (uint64_t)len, broadcast); if ((bytes == NULL || len == 0) && (status != lldb::eConnectionStatusEndOfFile)) return; |