[Lldb-commits] [lldb] 3b7795a - [lldb] vwprintw -> vw_printw in IOHandlerCursesGUI

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 16 04:14:28 PDT 2021


Author: Raphael Isemann
Date: 2021-06-16T13:14:08+02:00
New Revision: 3b7795aeceb153b04493c5ba93e707e39afbe41f

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

LOG: [lldb] vwprintw -> vw_printw in IOHandlerCursesGUI

`vwprintw` is (in theory) using the `arargs.h` va_list while `vw_printw` is
using the `stdarg.h` va_list. It seems these days they can be used
interchangeably but `vwprintw` is marked as deprecated.

Added: 
    

Modified: 
    lldb/source/Core/IOHandlerCursesGUI.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Core/IOHandlerCursesGUI.cpp b/lldb/source/Core/IOHandlerCursesGUI.cpp
index 3aa1b21ee5c4d..bd29d280c53f7 100644
--- a/lldb/source/Core/IOHandlerCursesGUI.cpp
+++ b/lldb/source/Core/IOHandlerCursesGUI.cpp
@@ -461,7 +461,7 @@ class Window {
   void Printf(const char *format, ...) __attribute__((format(printf, 2, 3))) {
     va_list args;
     va_start(args, format);
-    vwprintw(m_window, format, args);
+    vw_printw(m_window, format, args);
     va_end(args);
   }
 


        


More information about the lldb-commits mailing list