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/ser-base.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/ser-base.c')
-rw-r--r-- | gdb/ser-base.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/ser-base.c b/gdb/ser-base.c index 687cf0f..91c0ab8 100644 --- a/gdb/ser-base.c +++ b/gdb/ser-base.c @@ -108,13 +108,13 @@ reschedule (struct serial *scb) { case FD_SCHEDULED: if (scb->async_state != FD_SCHEDULED) - fprintf_unfiltered (gdb_stdlog, "[fd%d->fd-scheduled]\n", - scb->fd); + gdb_printf (gdb_stdlog, "[fd%d->fd-scheduled]\n", + scb->fd); break; default: /* TIMER SCHEDULED */ if (scb->async_state == FD_SCHEDULED) - fprintf_unfiltered (gdb_stdlog, "[fd%d->timer-scheduled]\n", - scb->fd); + gdb_printf (gdb_stdlog, "[fd%d->timer-scheduled]\n", + scb->fd); break; } } @@ -592,8 +592,8 @@ ser_base_async (struct serial *scb, /* Force a re-schedule. */ scb->async_state = NOTHING_SCHEDULED; if (serial_debug_p (scb)) - fprintf_unfiltered (gdb_stdlog, "[fd%d->asynchronous]\n", - scb->fd); + gdb_printf (gdb_stdlog, "[fd%d->asynchronous]\n", + scb->fd); reschedule (scb); if (scb->error_fd != -1) @@ -602,8 +602,8 @@ ser_base_async (struct serial *scb, else { if (serial_debug_p (scb)) - fprintf_unfiltered (gdb_stdlog, "[fd%d->synchronous]\n", - scb->fd); + gdb_printf (gdb_stdlog, "[fd%d->synchronous]\n", + scb->fd); /* De-schedule whatever tasks are currently scheduled. */ switch (scb->async_state) { |