mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 12:30:29 -05:00
ITS#10381 fix logformat for Windows again
Misplaced line in previous commit.
This commit is contained in:
parent
1b1b687bd4
commit
e8105816ce
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,6 @@ slap_debug_print( const char *data )
|
|||
datalen = len - prefixlen;
|
||||
if ( !logfile_only )
|
||||
(void)!write( 2, msgbuf+poffset, len );
|
||||
ptr = msgbuf;
|
||||
#else
|
||||
iov[0].iov_base = prefix;
|
||||
iov[0].iov_len = sprintf( prefix, "%lx." TS " %p ",
|
||||
|
|
@ -214,6 +213,7 @@ slap_debug_print( const char *data )
|
|||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
ptr = msgbuf;
|
||||
if ( logfile_format <= LFMT_DEBUG )
|
||||
ptr += poffset; /* only nonzero if logfile-format was explicitly set */
|
||||
len = write( logfile_fd, ptr, len );
|
||||
|
|
|
|||
Loading…
Reference in a new issue