aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-notif.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-02 11:46:15 -0700
committerTom Tromey <tom@tromey.com>2022-03-29 12:46:24 -0600
commit6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a (patch)
tree641a6a86240919fe4ba9219fbbbe15bc6331c22d /gdb/remote-notif.c
parenta11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff)
downloadfsf-binutils-gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.zip
fsf-binutils-gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz
fsf-binutils-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/remote-notif.c')
-rw-r--r--gdb/remote-notif.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c
index 0973733..95b45e3 100644
--- a/gdb/remote-notif.c
+++ b/gdb/remote-notif.c
@@ -63,8 +63,8 @@ remote_notif_ack (remote_target *remote,
notif_event_up event = nc->alloc_event ();
if (notif_debug)
- fprintf_unfiltered (gdb_stdlog, "notif: ack '%s'\n",
- nc->ack_command);
+ gdb_printf (gdb_stdlog, "notif: ack '%s'\n",
+ nc->ack_command);
nc->parse (remote, nc, buf, event.get ());
nc->ack (remote, nc, buf, event.release ());
@@ -79,7 +79,7 @@ remote_notif_parse (remote_target *remote,
notif_event_up event = nc->alloc_event ();
if (notif_debug)
- fprintf_unfiltered (gdb_stdlog, "notif: parse '%s'\n", nc->name);
+ gdb_printf (gdb_stdlog, "notif: parse '%s'\n", nc->name);
nc->parse (remote, nc, buf, event.get ());
@@ -145,8 +145,8 @@ handle_notification (struct remote_notif_state *state, const char *buf)
reason thought we didn't, possibly due to timeout on its side.
Just ignore it. */
if (notif_debug)
- fprintf_unfiltered (gdb_stdlog,
- "notif: ignoring resent notification\n");
+ gdb_printf (gdb_stdlog,
+ "notif: ignoring resent notification\n");
}
else
{
@@ -202,9 +202,9 @@ handle_notification (struct remote_notif_state *state, const char *buf)
}
if (notif_debug)
- fprintf_unfiltered (gdb_stdlog,
- "notif: Notification '%s' captured\n",
- nc->name);
+ gdb_printf (gdb_stdlog,
+ "notif: Notification '%s' captured\n",
+ nc->name);
}
}