mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
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.
This commit is contained in:
@ -632,11 +632,11 @@ parser_fprintf (FILE *x, const char *y, ...)
|
||||
|
||||
va_start (args, y);
|
||||
if (x == stderr)
|
||||
vfprintf_unfiltered (gdb_stderr, y, args);
|
||||
gdb_vprintf (gdb_stderr, y, args);
|
||||
else
|
||||
{
|
||||
fprintf_unfiltered (gdb_stderr, " Unknown FILE used.\n");
|
||||
vfprintf_unfiltered (gdb_stderr, y, args);
|
||||
gdb_vprintf (gdb_stderr, y, args);
|
||||
}
|
||||
va_end (args);
|
||||
}
|
||||
|
Reference in New Issue
Block a user