From 6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 2 Jan 2022 11:46:15 -0700 Subject: Unify gdb printf functions Now that filtered and unfiltered output can be treated identically, we can unify the printf family of functions. This is done under the name "gdb_printf". Most of this patch was written by script. --- gdb/cli/cli-script.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/cli/cli-script.c') diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index fe4682d..aa73d53 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -496,7 +496,7 @@ print_command_trace (const char *fmt, ...) return; for (i=0; i < command_nest_depth; i++) - printf_filtered ("+"); + gdb_printf ("+"); va_list args; @@ -1647,11 +1647,11 @@ show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name, { struct command_line *cmdlines = c->user_commands.get (); - fprintf_filtered (stream, "User %scommand \"", - c->is_prefix () ? "prefix" : ""); + gdb_printf (stream, "User %scommand \"", + c->is_prefix () ? "prefix" : ""); fprintf_styled (stream, title_style.style (), "%s%s", prefix, name); - fprintf_filtered (stream, "\":\n"); + gdb_printf (stream, "\":\n"); if (cmdlines) { print_command_lines (current_uiout, cmdlines, 1); -- cgit v1.1