From 19a7b8ab871b92dee32a0ebffe274388d3426564 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 2 Jan 2022 11:13:35 -0700 Subject: Unify vprintf functions Now that filtered and unfiltered output can be treated identically, we can unify the vprintf family of functions: vprintf_filtered, vprintf_unfiltered, vfprintf_filtered and vfprintf_unfiltered. (For the gdb_stdout variants, recall that only printf_unfiltered gets truly unfiltered output at this point.) This removes one such function and renames the remaining two to "gdb_vprintf". All callers are updated. Much of this patch was written by script. --- gdb/mi/mi-out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/mi') diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 53f7206..5145bea 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -151,7 +151,7 @@ mi_ui_out::do_field_fmt (int fldno, int width, ui_align align, fprintf_unfiltered (stream, "%s=\"", fldname); else fputs_unfiltered ("\"", stream); - vfprintf_unfiltered (stream, format, args); + gdb_vprintf (stream, format, args); fputs_unfiltered ("\"", stream); } -- cgit v1.1