KimisOS/src/kernel/shared/kstdlib.c

20 lines
360 B
C

#include "kstdlib.h"
#include <stdarg.h>
char* log_info_types[] = {
"",
":DEBUG",
"",
":WARNING",
":ERROR"
};
void mlog(char *module, char *str, uint32_t type, ...){
va_list vars;
va_start(vars, type);
if(!type || type > 4){
return;
}
printf("[ %s %s]", module, log_info_types[type]);
vprintf(str, vars);
}