From: Kurt Zeilenga Date: Sat, 28 Aug 2004 00:50:15 +0000 (+0000) Subject: ITS#3275: fix logging X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~617 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f39d6f80fba5dce731f1146643657bb952b9de7a;p=openldap ITS#3275: fix logging --- diff --git a/servers/slurpd/replog.c b/servers/slurpd/replog.c index 15fd8eb780..d146de0189 100644 --- a/servers/slurpd/replog.c +++ b/servers/slurpd/replog.c @@ -139,13 +139,13 @@ copy_replog( dfp = lock_fopen( dst, "a", &dlfp ); if ( dfp == NULL ) { #ifdef NEW_LOGGING - LDAP_LOG ( SLURPD, ERR, "copy_replog: " - "Error: Can't lock replog \"%s\" for write: %s\n", - src, sys_errlist[ errno ], 0 ); + LDAP_LOG ( SLURPD, ERR, + "copy_replog: Error: Can't lock replog \"%s\" for write: %s\n", + dst, sys_errlist[ errno ], 0 ); #else - Debug( LDAP_DEBUG_ANY, - "Error: copy_replog: Can't lock replog \"%s\" for write: %s\n", - src, sys_errlist[ errno ], 0 ); + Debug( LDAP_DEBUG_ANY, + "Error: copy_replog: Can't lock replog \"%s\" for write: %s\n", + dst, sys_errlist[ errno ], 0 ); #endif lock_fclose( rfp, lfp ); return( 1 ); @@ -165,12 +165,13 @@ copy_replog( if ( lock_fclose( dfp, dlfp ) == EOF ) { #ifdef NEW_LOGGING - LDAP_LOG ( SLURPD, ERR, "copy_replog: " - "Error: Error closing \"%s\"\n", src, 0, 0 ); + LDAP_LOG ( SLURPD, ERR, + "copy_replog: Error: Error closing \"%s\"\n", + dst, 0, 0 ); #else - Debug( LDAP_DEBUG_ANY, - "Error: copy_replog: Error closing \"%s\"\n", - src, 0, 0 ); + Debug( LDAP_DEBUG_ANY, + "Error: copy_replog: Error closing \"%s\"\n", + dst, 0, 0 ); #endif } if ( lock_fclose( rfp, lfp ) == EOF ) {