Transferred to UART communication

This commit is contained in:
Jozef Nagy 2025-04-20 19:35:57 +02:00
parent 5c682c4209
commit 10ee4fcbd9
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
9 changed files with 33832 additions and 19 deletions

View file

@ -26,6 +26,7 @@
#define NANOPRINTF_USE_WRITEBACK_FORMAT_SPECIFIERS 0
#include <nanoprintf.h>
#include <uart/uart.h>
#include <print.h>
#include <stddef.h>
@ -46,10 +47,7 @@ void log(const char *fmt, ...)
npf_vsnprintf(buf, sizeof(buf), fmt, args);
va_end(args);
// TODO: Get rid of this
#ifdef AXBOOT_UEFI
printstr(buf);
#endif
uart_sendstr(buf);
}
void debug(const char *fmt, ...)
@ -61,9 +59,7 @@ void debug(const char *fmt, ...)
npf_vsnprintf(buf, sizeof(buf), fmt, args);
va_end(args);
#ifdef AXBOOT_UEFI
printstr(buf);
#endif
uart_sendstr(buf);
}
void snprintf(char *buf, size_t size, const char *fmt, ...)