diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-28 14:10:11 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-12-29 11:08:04 -0700 |
commit | 7514a661283b9725ceeb4385be67b6b5d7702b2c (patch) | |
tree | ec1a988096fef8b15609413267729f3a0b7c7194 /gdb/target-descriptions.c | |
parent | de4686ffaff8bade61657078990f392b3aa14ff4 (diff) | |
download | binutils-7514a661283b9725ceeb4385be67b6b5d7702b2c.zip binutils-7514a661283b9725ceeb4385be67b6b5d7702b2c.tar.gz binutils-7514a661283b9725ceeb4385be67b6b5d7702b2c.tar.bz2 |
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.
Diffstat (limited to 'gdb/target-descriptions.c')
-rw-r--r-- | gdb/target-descriptions.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index de1d68c..ffbfe35 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -1303,11 +1303,13 @@ show_tdesc_filename_cmd (struct ui_file *file, int from_tty, value = get_tdesc_info (current_inferior ())->filename.data (); if (value != NULL && *value != '\0') - printf_filtered (_("The target description will be read from \"%s\".\n"), - value); + fprintf_filtered (file, + _("The target description will be read from \"%s\".\n"), + value); else - printf_filtered (_("The target description will be " - "read from the target.\n")); + fprintf_filtered (file, + _("The target description will be " + "read from the target.\n")); } static void |