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/Core/UserID.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/Core/UserID.cpp')
-rw-r--r-- | lldb/source/Core/UserID.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Core/UserID.cpp b/lldb/source/Core/UserID.cpp index ad042df8cbc..57ffce9cfff 100644 --- a/lldb/source/Core/UserID.cpp +++ b/lldb/source/Core/UserID.cpp @@ -10,6 +10,8 @@ #include "lldb/Core/UserID.h" #include "lldb/Core/Stream.h" +#include <inttypes.h> + using namespace lldb; using namespace lldb_private; @@ -20,6 +22,6 @@ UserID::~UserID () Stream& lldb_private::operator << (Stream& strm, const UserID& uid) { - strm.Printf("{0x%8.8llx}", uid.GetID()); + strm.Printf("{0x%8.8" PRIx64 "}", uid.GetID()); return strm; } |