renamed capwap directory to cw.
FossilOrigin-Name: 8a43dd9d05a4cb73210243ddd8df2a26f16c7ef2c4d4e36ab446de1f65d88223
This commit is contained in:
26
src/cw/log_file.c
Normal file
26
src/cw/log_file.c
Normal file
@ -0,0 +1,26 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "log.h"
|
||||
|
||||
|
||||
int cw_log_file_flags = LOG_PERROR;
|
||||
char * cw_log_filename = NULL;
|
||||
|
||||
|
||||
void cw_log_vfile(int level,const char * format, va_list args)
|
||||
{
|
||||
vprintf(format,args);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
void cw_log_file(int level,const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
cw_log_vfile(level,format,args);
|
||||
va_end(args);
|
||||
closelog();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user