mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-05 13:12:27 +08:00
Consistently Use ui_file parameter to show callbacks
I happened to notice that one "show" callback was printing to gdb_stdout rather than to the passed-in ui_file parameter. I went through all such callbacks and fixed them to consistently use the ui_file. Regression tested on x86-64 Fedora 34.
This commit is contained in:
@ -181,9 +181,9 @@ show_logging_enabled (struct ui_file *file, int from_tty,
|
||||
struct cmd_list_element *c, const char *value)
|
||||
{
|
||||
if (logging_enabled)
|
||||
printf_unfiltered (_("Logging is enabled.\n"));
|
||||
fprintf_unfiltered (file, _("Logging is enabled.\n"));
|
||||
else
|
||||
printf_unfiltered (_("Logging is disabled.\n"));
|
||||
fprintf_unfiltered (file, _("Logging is disabled.\n"));
|
||||
}
|
||||
|
||||
void _initialize_cli_logging ();
|
||||
|
Reference in New Issue
Block a user