From 0d4ce0deb4c317abcbaa2828c1ca6e82d8c8abc4 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sun, 10 May 2020 06:46:51 +0000 Subject: fix socket_log() calls, EVENT expands to three comma separated values; spotted by gcc; ok florian@ --- usr.bin/dig/lib/isc/unix/socket.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/dig/lib/isc/unix/socket.c b/usr.bin/dig/lib/isc/unix/socket.c index dd803bc27a8..e96cbff0294 100644 --- a/usr.bin/dig/lib/isc/unix/socket.c +++ b/usr.bin/dig/lib/isc/unix/socket.c @@ -1454,7 +1454,7 @@ dispatch_recv(isc_socket_t *sock) { ev = ISC_LIST_HEAD(sock->recv_list); if (ev == NULL) return; - socket_log(sock, NULL, EVENT, NULL, 0, 0, + socket_log(sock, NULL, EVENT, "dispatch_recv: event %p -> task %p", ev, ev->ev_sender); sender = ev->ev_sender; @@ -1481,7 +1481,7 @@ dispatch_send(isc_socket_t *sock) { ev = ISC_LIST_HEAD(sock->send_list); if (ev == NULL) return; - socket_log(sock, NULL, EVENT, NULL, 0, 0, + socket_log(sock, NULL, EVENT, "dispatch_send: event %p -> task %p", ev, ev->ev_sender); sender = ev->ev_sender; @@ -1970,7 +1970,7 @@ socket_recv(isc_socket_t *sock, isc_socketevent_t *dev, isc_task_t *task, select_poke(sock->manager, sock->fd, SELECT_POKE_READ); ISC_LIST_ENQUEUE(sock->recv_list, dev, ev_link); - socket_log(sock, NULL, EVENT, NULL, 0, 0, + socket_log(sock, NULL, EVENT, "socket_recv: event %p -> task %p", dev, ntask); @@ -2102,7 +2102,7 @@ socket_send(isc_socket_t *sock, isc_socketevent_t *dev, isc_task_t *task, SELECT_POKE_WRITE); ISC_LIST_ENQUEUE(sock->send_list, dev, ev_link); - socket_log(sock, NULL, EVENT, NULL, 0, 0, + socket_log(sock, NULL, EVENT, "socket_send: event %p -> task %p", dev, ntask); -- cgit v1.2.3