[Lldb-commits] [lldb] r362035 - Use correct format specifier to silence -Wformat warning.

Richard Trieu via lldb-commits lldb-commits at lists.llvm.org
Wed May 29 14:25:15 PDT 2019


Author: rtrieu
Date: Wed May 29 14:25:15 2019
New Revision: 362035

URL: http://llvm.org/viewvc/llvm-project?rev=362035&view=rev
Log:
Use correct format specifier to silence -Wformat warning.

Modified:
    lldb/trunk/source/Utility/Timer.cpp

Modified: lldb/trunk/source/Utility/Timer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/Timer.cpp?rev=362035&r1=362034&r2=362035&view=diff
==============================================================================
--- lldb/trunk/source/Utility/Timer.cpp (original)
+++ lldb/trunk/source/Utility/Timer.cpp Wed May 29 14:25:15 2019
@@ -144,7 +144,8 @@ void Timer::DumpCategoryTimes(Stream *s)
   llvm::sort(sorted.begin(), sorted.end(), CategoryMapIteratorSortCriterion);
 
   for (const auto &stats : sorted)
-    s->Printf("%.9f sec (total: %.3fs; child: %.3fs; count: %llu) for %s\n",
+    s->Printf("%.9f sec (total: %.3fs; child: %.3fs; count: %" PRIu64
+              ") for %s\n",
               stats.nanos / 1000000000., stats.nanos_total / 1000000000.,
               (stats.nanos_total - stats.nanos) / 1000000000., stats.count,
               stats.name);




More information about the lldb-commits mailing list