diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-02 11:46:15 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | 6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a (patch) | |
tree | 641a6a86240919fe4ba9219fbbbe15bc6331c22d /gdb/charset.c | |
parent | a11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff) | |
download | gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.zip gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.bz2 |
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.
Diffstat (limited to 'gdb/charset.c')
-rw-r--r-- | gdb/charset.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gdb/charset.c b/gdb/charset.c index 84c60a4..74f742e 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -232,11 +232,11 @@ show_host_charset_name (struct ui_file *file, int from_tty, const char *value) { if (!strcmp (value, "auto")) - fprintf_filtered (file, - _("The host character set is \"auto; currently %s\".\n"), - auto_host_charset_name); + gdb_printf (file, + _("The host character set is \"auto; currently %s\".\n"), + auto_host_charset_name); else - fprintf_filtered (file, _("The host character set is \"%s\".\n"), value); + gdb_printf (file, _("The host character set is \"%s\".\n"), value); } static const char *target_charset_name = "auto"; @@ -245,13 +245,13 @@ show_target_charset_name (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { if (!strcmp (value, "auto")) - fprintf_filtered (file, - _("The target character set is \"auto; " - "currently %s\".\n"), - gdbarch_auto_charset (get_current_arch ())); + gdb_printf (file, + _("The target character set is \"auto; " + "currently %s\".\n"), + gdbarch_auto_charset (get_current_arch ())); else - fprintf_filtered (file, _("The target character set is \"%s\".\n"), - value); + gdb_printf (file, _("The target character set is \"%s\".\n"), + value); } static const char *target_wide_charset_name = "auto"; @@ -262,13 +262,13 @@ show_target_wide_charset_name (struct ui_file *file, const char *value) { if (!strcmp (value, "auto")) - fprintf_filtered (file, - _("The target wide character set is \"auto; " - "currently %s\".\n"), - gdbarch_auto_wide_charset (get_current_arch ())); + gdb_printf (file, + _("The target wide character set is \"auto; " + "currently %s\".\n"), + gdbarch_auto_wide_charset (get_current_arch ())); else - fprintf_filtered (file, _("The target wide character set is \"%s\".\n"), - value); + gdb_printf (file, _("The target wide character set is \"%s\".\n"), + value); } static const char * const default_charset_names[] = |