From 6af256b8e1df83c0ee32e2906fadd5e824b13835 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 15 May 2003 23:45:33 +0000 Subject: [PATCH] Fix some Statslog()s: Add missing newlines. Print file descriptor as long. --- servers/slapd/bind.c | 2 +- servers/slapd/connection.c | 4 ++-- servers/slapd/daemon.c | 2 +- servers/slapd/starttls.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/servers/slapd/bind.c b/servers/slapd/bind.c index 9641d863c2..2678c18b48 100644 --- a/servers/slapd/bind.c +++ b/servers/slapd/bind.c @@ -64,7 +64,7 @@ do_bind( /* log authorization identity demotion */ if ( op->o_conn->c_dn.bv_len ) { Statslog( LDAP_DEBUG_STATS, - "conn=%lu op=%lu BIND anonymous mech=implicit ssf=0", + "conn=%lu op=%lu BIND anonymous mech=implicit ssf=0\n", op->o_connid, op->o_opid, 0, 0, 0 ); } diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index e7b0d29fd1..30fcc56989 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -666,8 +666,8 @@ connection_destroy( Connection *c ) slapd_remove( sd, 0 ); Statslog( LDAP_DEBUG_STATS, - "conn=%lu fd=%d closed\n", - connid, sd, 0, 0, 0 ); + "conn=%lu fd=%ld closed\n", + connid, (long) sd, 0, 0, 0 ); } ber_sockbuf_free( c->c_sb ); diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 22f9edf57a..731be0a908 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1708,7 +1708,7 @@ slapd_daemon_task( { /* DENY ACCESS */ Statslog( LDAP_DEBUG_STATS, - "fd=%ld DENIED from %s (%s)", + "fd=%ld DENIED from %s (%s)\n", (long) s, dnsname != NULL ? dnsname : SLAP_STRING_UNKNOWN, peeraddr != NULL ? peeraddr : SLAP_STRING_UNKNOWN, diff --git a/servers/slapd/starttls.c b/servers/slapd/starttls.c index 746bd76590..939646c09f 100644 --- a/servers/slapd/starttls.c +++ b/servers/slapd/starttls.c @@ -57,7 +57,7 @@ starttls_extop ( Operation *op, SlapReply *rs ) ( op->o_conn->c_dn.bv_len != 0 ) ) { Statslog( LDAP_DEBUG_STATS, - "conn=%lu op=%lu AUTHZ anonymous mech=starttls ssf=0", + "conn=%lu op=%lu AUTHZ anonymous mech=starttls ssf=0\n", op->o_connid, op->o_opid, 0, 0, 0 ); /* force to anonymous */ -- 2.39.5