From: Kurt Zeilenga Date: Sun, 16 Oct 2005 06:41:55 +0000 (+0000) Subject: Add descr # to epoll_ctl failed error message X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~229 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c961673d9e7624c408e0c1686d1f40d1eb16c0b9;p=openldap Add descr # to epoll_ctl failed error message --- 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; }