[Lldb-commits] [lldb] r283472 - Match printf field width arg and type

Ed Maste via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 6 10:55:22 PDT 2016


Author: emaste
Date: Thu Oct  6 12:55:22 2016
New Revision: 283472

URL: http://llvm.org/viewvc/llvm-project?rev=283472&view=rev
Log:
Match printf field width arg and type

A '*' as a field width or precision specifies that the field width or
precision is supplied by an int argument.

Modified:
    lldb/trunk/source/Interpreter/Args.cpp

Modified: lldb/trunk/source/Interpreter/Args.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/Args.cpp?rev=283472&r1=283471&r2=283472&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/Args.cpp (original)
+++ lldb/trunk/source/Interpreter/Args.cpp Thu Oct  6 12:55:22 2016
@@ -213,7 +213,7 @@ void Args::Dump(Stream &s, const char *l
   int i = 0;
   for (auto &entry : m_entries) {
     s.Indent();
-    s.Printf("%s[%zi]=\"%*s\"\n", label_name, i++, entry.ref.size(),
+    s.Printf("%s[%zi]=\"%*s\"\n", label_name, i++, int(entry.ref.size()),
              entry.ref.data());
   }
   s.Printf("%s[%zi]=NULL\n", label_name, i);




More information about the lldb-commits mailing list