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/s12z-tdep.c | |
parent | a11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff) | |
download | binutils-gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz |
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/s12z-tdep.c')
-rw-r--r-- | gdb/s12z-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c index 77dda56fab0..bf6a71c7f7f 100644 --- a/gdb/s12z-tdep.c +++ b/gdb/s12z-tdep.c @@ -524,7 +524,7 @@ s12z_print_ccw_info (struct gdbarch *gdbarch, const int stop_2 = 17; for (int i = 0; i < stop_1 - len; ++i) gdb_putc (' ', file); - fprintf_filtered (file, "0x%04x", ccw); + gdb_printf (file, "0x%04x", ccw); for (int i = 0; i < stop_2 - len; ++i) gdb_putc (' ', file); for (int b = 15; b >= 0; --b) @@ -631,7 +631,7 @@ show_bdccsr_command (const char *args, int from_tty) struct string_file output; target_rcmd ("bdccsr", &output); - printf_filtered ("The current BDCCSR value is %s\n", output.string().c_str()); + gdb_printf ("The current BDCCSR value is %s\n", output.string().c_str()); } static struct gdbarch * |