[Lldb-commits] [lldb] r238334 - Make sure we print timestamps correctly to 9 places since we are printing nanoseconds.

Greg Clayton gclayton at apple.com
Wed May 27 09:25:01 PDT 2015


Author: gclayton
Date: Wed May 27 11:25:01 2015
New Revision: 238334

URL: http://llvm.org/viewvc/llvm-project?rev=238334&view=rev
Log:
Make sure we print timestamps correctly to 9 places since we are printing nanoseconds.

<rdar://problem/21090231>



Modified:
    lldb/trunk/source/Core/Log.cpp

Modified: lldb/trunk/source/Core/Log.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Log.cpp?rev=238334&r1=238333&r2=238334&view=diff
==============================================================================
--- lldb/trunk/source/Core/Log.cpp (original)
+++ lldb/trunk/source/Core/Log.cpp Wed May 27 11:25:01 2015
@@ -119,7 +119,7 @@ Log::VAPrintf(const char *format, va_lis
         if (m_options.Test (LLDB_LOG_OPTION_PREPEND_TIMESTAMP))
         {
             TimeValue now = TimeValue::Now();
-            header.Printf ("%9d.%6.6d ", now.seconds(), now.nanoseconds());
+            header.Printf ("%9d.%09.9d ", now.seconds(), now.nanoseconds());
         }
 
         // Add the process and thread if requested





More information about the lldb-commits mailing list