00001 #include <cfg/crt.h> 00002 #include <sys/types.h> 00003 00004 #include <stdio.h> 00005 #include <stdarg.h> 00006 00007 #include "logmsg.h" 00008 00009 void LogMsg(u_int type, CONST char *fmt, ...) 00010 { 00011 va_list ap; 00012 00013 va_start(ap, fmt); 00014 if (type & LOG_ENABLE) { 00015 vfprintf(stdout, fmt, ap); 00016 } 00017 va_end(ap); 00018 }