blob: 55622c0643f71b1ceaa8a910d9236468713ebbc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "log.h"
void PutConsole(char *str, int color, va_list va);
void log(char *module_name, int prio, char *format_string, ...)
{
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();
}
|