]> git.sur5r.net Git - openldap/commitdiff
ITS#3275: fix logging
authorKurt Zeilenga <kurt@openldap.org>
Sat, 28 Aug 2004 00:50:15 +0000 (00:50 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 28 Aug 2004 00:50:15 +0000 (00:50 +0000)
servers/slurpd/replog.c

index 15fd8eb780edf3c340ca9f409e69a37639082ad7..d146de0189a7da4e9fd24b93b4666a9521dcecd1 100644 (file)
@@ -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 ) {