summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Log.cpp
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2012-11-29 21:49:15 +0000
committerDaniel Malea <daniel.malea@intel.com>2012-11-29 21:49:15 +0000
commitd01b2953fac73977de3bc97e72ea04ad1ec6600f (patch)
tree1883eeb5c13d5a2aa557d50eb40a0e08f43a8ec1 /lldb/source/Core/Log.cpp
parent05d3bf77a1af49e8f6513729e4ccce780ffae4bb (diff)
downloadbcm5719-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/Log.cpp')
-rw-r--r--lldb/source/Core/Log.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Log.cpp b/lldb/source/Core/Log.cpp
index 17281c03fd0..b8671f7ddc9 100644
--- a/lldb/source/Core/Log.cpp
+++ b/lldb/source/Core/Log.cpp
@@ -100,12 +100,12 @@ Log::PrintfWithFlagsVarArg (uint32_t flags, const char *format, va_list args)
if (m_options.Test (LLDB_LOG_OPTION_PREPEND_TIMESTAMP))
{
struct timeval tv = TimeValue::Now().GetAsTimeVal();
- header.Printf ("%9ld.%6.6d ", tv.tv_sec, tv.tv_usec);
+ header.Printf ("%9ld.%6.6ld ", tv.tv_sec, tv.tv_usec);
}
// Add the process and thread if requested
if (m_options.Test (LLDB_LOG_OPTION_PREPEND_PROC_AND_THREAD))
- header.Printf ("[%4.4x/%4.4llx]: ", getpid(), Host::GetCurrentThreadID());
+ header.Printf ("[%4.4x/%4.4" PRIx64 "]: ", getpid(), Host::GetCurrentThreadID());
// Add the process and thread if requested
if (m_options.Test (LLDB_LOG_OPTION_PREPEND_THREAD_NAME))
OpenPOWER on IntegriCloud