summaryrefslogtreecommitdiff
path: root/gdb/debuginfod-support.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-28 14:10:11 -0700
committerTom Tromey <tom@tromey.com>2021-12-29 11:08:04 -0700
commit7514a661283b9725ceeb4385be67b6b5d7702b2c (patch)
treeec1a988096fef8b15609413267729f3a0b7c7194 /gdb/debuginfod-support.c
parentde4686ffaff8bade61657078990f392b3aa14ff4 (diff)
downloadbinutils-gdb-7514a661283b9725ceeb4385be67b6b5d7702b2c.tar.gz
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/debuginfod-support.c')
-rw-r--r--gdb/debuginfod-support.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c
index 1f160e29714..633cfdb6aea 100644
--- a/gdb/debuginfod-support.c
+++ b/gdb/debuginfod-support.c
@@ -299,8 +299,9 @@ static void
show_debuginfod_enabled (ui_file *file, int from_tty, cmd_list_element *cmd,
const char *value)
{
- printf_unfiltered (_("Debuginfod functionality is currently set to "
- "\"%s\".\n"), debuginfod_enabled);
+ fprintf_unfiltered (file,
+ _("Debuginfod functionality is currently set to "
+ "\"%s\".\n"), debuginfod_enabled);
}
/* Set callback for "set debuginfod urls". */