]> git.sur5r.net Git - openldap/commitdiff
Fix some Statslog()s: Add missing newlines. Print file descriptor as long.
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 15 May 2003 23:45:33 +0000 (23:45 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 15 May 2003 23:45:33 +0000 (23:45 +0000)
servers/slapd/bind.c
servers/slapd/connection.c
servers/slapd/daemon.c
servers/slapd/starttls.c

index 9641d863c22373568b3120eabf30e59da6ead878..2678c18b4883fc22779ace536c51107881d57a68 100644 (file)
@@ -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 );
        }
 
index e7b0d29fd14afca2ab25b7a43f22e5d2422182df..30fcc56989cbb5d5a90199477f991a105b5788a7 100644 (file)
@@ -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 );
index 22f9edf57a385879c0d638541235599261160255..731be0a90894fc5fe4d1b4ae0039b2216b44347f 100644 (file)
@@ -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,
index 746bd76590a407bfa9170ef0feed95983215a87f..939646c09f509e64e4a8c84e05346b81ba4bec58 100644 (file)
@@ -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 */