summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/accept.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ldpd/accept.c')
-rw-r--r--usr.sbin/ldpd/accept.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ldpd/accept.c b/usr.sbin/ldpd/accept.c
index d1f660830ec..a117c1dc709 100644
--- a/usr.sbin/ldpd/accept.c
+++ b/usr.sbin/ldpd/accept.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: accept.c,v 1.3 2013/10/31 16:56:22 deraadt Exp $ */
+/* $OpenBSD: accept.c,v 1.4 2016/05/23 15:14:07 renato Exp $ */
/*
* Copyright (c) 2012 Claudio Jeker <claudio@openbsd.org>
@@ -65,7 +65,7 @@ accept_add(int fd, void (*cb)(int, short, void *), void *arg)
event_set(&av->ev, av->fd, EV_READ, accept_cb, av);
event_add(&av->ev, NULL);
- log_debug("accept_add: accepting on fd %d", fd);
+ log_debug("%s: accepting on fd %d", __func__, fd);
return (0);
}
@@ -77,7 +77,7 @@ accept_del(int fd)
LIST_FOREACH(av, &accept_queue.queue, entry)
if (av->fd == fd) {
- log_debug("accept_del: %d removed from queue", fd);
+ log_debug("%s: %d removed from queue", __func__, fd);
event_del(&av->ev);
LIST_REMOVE(av, entry);
free(av);
@@ -90,7 +90,7 @@ accept_pause(void)
{
struct timeval evtpause = { 1, 0 };
- log_debug("accept_pause");
+ log_debug(__func__);
accept_unarm();
evtimer_add(&accept_queue.evt, &evtpause);
}
@@ -99,7 +99,7 @@ void
accept_unpause(void)
{
if (evtimer_pending(&accept_queue.evt, NULL)) {
- log_debug("accept_unpause");
+ log_debug(__func__);
evtimer_del(&accept_queue.evt);
accept_arm();
}
@@ -132,6 +132,6 @@ accept_cb(int fd, short event, void *arg)
void
accept_timeout(int fd, short event, void *bula)
{
- log_debug("accept_timeout");
+ log_debug(__func__);
accept_arm();
}