Unifying External Interrupt System (#51)
[lunaix-os.git] / lunaix-os / tests / units / stubs / syslog.c
1 #include <lunaix/syslog.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4
5 void
6 kprintf_m(const char* component, const char* fmt, va_list args)
7 {
8     int sz = 0;
9     char buff[1024];
10     
11     sz = vsnprintf(buff, 1024, fmt, args);
12     printf("%s: %s\n", component, buff);
13 }
14
15 void
16 kprintf_v(const char* component, const char* fmt, ...)
17 {
18     va_list args;
19
20     va_start(args, fmt);
21
22     kprintf_m(component, fmt, args);
23
24     va_end(args);
25 }