diff options
author | Jason Molenda <jmolenda@apple.com> | 2015-10-29 00:13:42 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2015-10-29 00:13:42 +0000 |
commit | eba832bea60f2c5b19726543754a9a6646f2bbfc (patch) | |
tree | 4fb5cc7f3dc9c3b27117b93738397f52b19df62f /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp | |
parent | d76b2a42f2d2e913927d7f1a3c4bac8f191070a0 (diff) | |
download | bcm5719-llvm-eba832bea60f2c5b19726543754a9a6646f2bbfc.tar.gz bcm5719-llvm-eba832bea60f2c5b19726543754a9a6646f2bbfc.zip |
Explicitly cast size_t var to (uint64_t) when printf format is PRIx64.
llvm-svn: 251585
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp')
-rw-r--r-- | lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp index fb8a6447cfa..78b78e56749 100644 --- a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp +++ b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp @@ -1586,7 +1586,7 @@ RenderScriptRuntime::LoadAllocation(Stream &strm, const uint32_t alloc_id, const if (alloc_size != length) { strm.Printf("Warning: Mismatched allocation sizes - file 0x%" PRIx64 " bytes, allocation 0x%x bytes", - length, alloc_size); + (uint64_t) length, alloc_size); strm.EOL(); length = alloc_size < length ? alloc_size : length; // Set length to copy to minimum } @@ -1685,7 +1685,7 @@ RenderScriptRuntime::SaveAllocation(Stream &strm, const uint32_t alloc_id, const // Write allocation data to file num_bytes = static_cast<size_t>(*alloc->size.get()); if (log) - log->Printf("RenderScriptRuntime::SaveAllocation - Writing %" PRIx64 "bytes from %p", num_bytes, buffer.get()); + log->Printf("RenderScriptRuntime::SaveAllocation - Writing 0x%" PRIx64 " bytes from %p", (uint64_t) num_bytes, buffer.get()); err = file.Write(buffer.get(), num_bytes); if (!err.Success()) |