]> git.sur5r.net Git - openldap/blob - servers/slapd/nt_debug.c
Make Versionstr const.
[openldap] / servers / slapd / nt_debug.c
1 #include <stdio.h>
2 #include <stdarg.h>
3
4 static FILE *log_file;
5
6 void Debug( int level, char *fmt, ... )
7 {
8         char buffer[4096];
9         va_list vl;
10
11         if( log_file == NULL )
12                 log_file = fopen( "C:\\OpenLDAP\\run\\slapd.log", "w" );
13
14         va_start( vl, fmt );
15         vsprintf( buffer, fmt, vl );
16         fprintf( log_file, "%s\n", buffer );
17         fflush( log_file );
18         va_end( vl );
19 }