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/Plugins/Process/POSIX/RegisterContext_i386.cpp | |
parent | 05d3bf77a1af49e8f6513729e4ccce780ffae4bb (diff) | |
download | bcm5719-llvm-d01b2953fac73977de3bc97e72ea04ad1ec6600f.tar.gz bcm5719-llvm-d01b2953fac73977de3bc97e72ea04ad1ec6600f.zip |
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/Plugins/Process/POSIX/RegisterContext_i386.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/POSIX/RegisterContext_i386.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/RegisterContext_i386.cpp b/lldb/source/Plugins/Process/POSIX/RegisterContext_i386.cpp index 9485164c2b6..c0bb9b13fd2 100644 --- a/lldb/source/Plugins/Process/POSIX/RegisterContext_i386.cpp +++ b/lldb/source/Plugins/Process/POSIX/RegisterContext_i386.cpp @@ -620,7 +620,7 @@ RegisterContext_i386::LogGPR(const char *title) for (uint32_t i=0; i<k_num_gpr_registers; i++) { uint32_t reg = gpr_eax + i; - log->Printf("%12s = 0x%8.8x", g_register_infos[reg].name, (&user.regs)[reg]); + log->Printf("%12s = 0x%8.8" PRIx64, g_register_infos[reg].name, ((uint64_t*)&user.regs)[reg]); } } } |