aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/notif.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-11-18 00:07:10 +0000
committerPedro Alves <palves@redhat.com>2016-11-23 01:11:50 +0000
commit4eefa7bcf286b879f61b9e1ec1c97230f5345104 (patch)
tree8d5d638852acfdb0d9c440cb63b09e4ead66e63c /gdb/gdbserver/notif.c
parent400b2f29938dab7d9c4f46c9d1b0dc23dab0518b (diff)
downloadbinutils-4eefa7bcf286b879f61b9e1ec1c97230f5345104.zip
binutils-4eefa7bcf286b879f61b9e1ec1c97230f5345104.tar.gz
binutils-4eefa7bcf286b879f61b9e1ec1c97230f5345104.tar.bz2
gdbserver: Use debug_printf for debug output
gdb/gdbserver/ChangeLog: 2016-11-23 Pedro Alves <palves@redhat.com> * linux-low.c (check_zombie_leaders): Use debug_printf for debug output. * notif.c (handle_notif_ack, notif_event_enque): Likewise. * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use debug_printf and debug_flush for debug output. * server.c (handle_general_set): Likewise. * thread-db.c (try_thread_db_load): Use debug_printf for debug output.
Diffstat (limited to 'gdb/gdbserver/notif.c')
-rw-r--r--gdb/gdbserver/notif.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/gdbserver/notif.c b/gdb/gdbserver/notif.c
index 9455167..342f07b 100644
--- a/gdb/gdbserver/notif.c
+++ b/gdb/gdbserver/notif.c
@@ -104,8 +104,8 @@ handle_notif_ack (char *own_buf, int packet_len)
= QUEUE_deque (notif_event_p, np->queue);
if (remote_debug)
- fprintf (stderr, "%s: acking %d\n", np->ack_name,
- QUEUE_length (notif_event_p, np->queue));
+ debug_printf ("%s: acking %d\n", np->ack_name,
+ QUEUE_length (notif_event_p, np->queue));
xfree (head);
}
@@ -124,8 +124,8 @@ notif_event_enque (struct notif_server *notif,
QUEUE_enque (notif_event_p, notif->queue, event);
if (remote_debug)
- fprintf (stderr, "pending events: %s %d\n", notif->notif_name,
- QUEUE_length (notif_event_p, notif->queue));
+ debug_printf ("pending events: %s %d\n", notif->notif_name,
+ QUEUE_length (notif_event_p, notif->queue));
}