Transferred to UART communication
This commit is contained in:
parent
5c682c4209
commit
10ee4fcbd9
9 changed files with 33832 additions and 19 deletions
|
@ -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, ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue