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


_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to