Make sure we print timestamps correctly to 9 places since we are printing nanoseconds.
authorGreg Clayton <gclayton@apple.com>
Wed, 27 May 2015 16:25:01 +0000 (16:25 +0000)
committerGreg Clayton <gclayton@apple.com>
Wed, 27 May 2015 16:25:01 +0000 (16:25 +0000)
<rdar://problem/21090231>

llvm-svn: 238334

lldb/source/Core/Log.cpp

index 805b8fd..6acd50e 100644 (file)
@@ -119,7 +119,7 @@ Log::VAPrintf(const char *format, va_list args)
         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