gdbserver: Use debug_printf for debug output
[deliverable/binutils-gdb.git] / gdb / gdbserver / notif.c
index 945516798d599ceac610e0d48a412cb5cead248c..342f07bce9b51e8791a4d10a7388bdb0ae686094 100644 (file)
@@ -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));
 
 }
 
This page took 0.024683 seconds and 4 git commands to generate.