From c961673d9e7624c408e0c1686d1f40d1eb16c0b9 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 16 Oct 2005 06:41:55 +0000 Subject: [PATCH] Add descr # to epoll_ctl failed error message --- servers/slapd/daemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index b0f2d6bd09..6f796b493c 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -180,8 +180,8 @@ static struct slap_daemon { slap_daemon.sd_nfds++; \ } else { \ Debug( LDAP_DEBUG_ANY, \ - "daemon: epoll_ctl ADD failed, errno %d, shutting down\n", \ - errno, 0, 0 ); \ + "daemon: epoll_ctl(ADD,fd=%d) failed, errno=%d, shutting down\n", \ + s, errno, 0 ); \ slapd_shutdown = 2; \ } \ } while (0) @@ -690,7 +690,7 @@ static int slap_get_listener_addresses( snprintf(serv, sizeof serv, "%d", port); if ( (err = getaddrinfo(host, serv, &hints, &res)) ) { - Debug( LDAP_DEBUG_ANY, "daemon: getaddrinfo failed: %s\n", + Debug( LDAP_DEBUG_ANY, "daemon: getaddrinfo() failed: %s\n", AC_GAI_STRERROR(err), 0, 0); return -1; } -- 2.39.5