mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
14 lines
256 B
C
14 lines
256 B
C
#include <error/debug.h>
|
|
#include <ports/serial.h>
|
|
#include <stdarg.h>
|
|
|
|
int debugf(const char* fmt, ...) {
|
|
va_list va;
|
|
va_start(va, fmt);
|
|
serialPrint(PORT_COM1, fmt); // TODO: use a printf
|
|
int res = 0;
|
|
va_end(va);
|
|
return res;
|
|
}
|
|
|