[Lldb-commits] [lldb] ebaf26d - [lldb] Fix -Wformat after #83602

Fangrui Song via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 1 12:09:36 PST 2024


Author: Fangrui Song
Date: 2024-03-01T12:09:32-08:00
New Revision: ebaf26dabec00c32177cd4fa47f3bf5902b194b7

URL: https://github.com/llvm/llvm-project/commit/ebaf26dabec00c32177cd4fa47f3bf5902b194b7
DIFF: https://github.com/llvm/llvm-project/commit/ebaf26dabec00c32177cd4fa47f3bf5902b194b7.diff

LOG: [lldb] Fix -Wformat after #83602

Added: 
    

Modified: 
    lldb/source/Commands/CommandObjectThread.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index 6d84315a471d95..cf4f8ccaa0c4aa 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -280,7 +280,7 @@ class ThreadStepScopeOptionGroup : public OptionGroup {
       if (!success)
         error.SetErrorStringWithFormat(
             "invalid boolean value for option '%c': %s", short_option,
-            option_arg);
+            option_arg.data());
       else {
         m_step_in_avoid_no_debug = avoid_no_debug ? eLazyBoolYes : eLazyBoolNo;
       }
@@ -293,7 +293,7 @@ class ThreadStepScopeOptionGroup : public OptionGroup {
       if (!success)
         error.SetErrorStringWithFormat(
             "invalid boolean value for option '%c': %s", short_option,
-            option_arg);
+            option_arg.data());
       else {
         m_step_out_avoid_no_debug = avoid_no_debug ? eLazyBoolYes : eLazyBoolNo;
       }


        


More information about the lldb-commits mailing list