blob: aea1b7f6a00896d8560d922f32a04c859b3790d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "log.h"
#include <stdarg.h>
void PutConsole(char *str, int color, va_list va);
void log(char *module_name, int log_level, char *format_string, ...)
{
if(log_level<FOOLOS_LOG_INFO)return;
PutConsole(module_name,0b1111100000000000,0);
PutConsole(": ",0b0000011111100000,0);
va_list va;
va_start(va,format_string);
PutConsole(format_string, 0b11111, va);
va_end(va);
PutConsoleNL();
}
|