kernel: add support for running without any framebuffer

This commit is contained in:
RaphProductions 2025-05-08 22:12:56 +02:00
parent 17e6219f24
commit 2d4031eacc
3 changed files with 27 additions and 35 deletions

View file

@ -9,7 +9,8 @@ void log(char *format, ...) {
// TODO: replace this call with a call to printf() when the RTC is implemented.
char *date = "1970-01-01 00:00:00 | ";
int i2 = 0; for (i2; date[i2] != 0; i2++);;
flanterm_write(ft_ctx, date, i2);
if (ft_ctx)
flanterm_write(ft_ctx, date, i2);
char buf[2048];
va_list l;
@ -18,7 +19,8 @@ void log(char *format, ...) {
va_end(l);
int i = 0; for (i; buf[i] != 0; i++);;
flanterm_write(ft_ctx, buf, i);
if (ft_ctx)
flanterm_write(ft_ctx, buf, i);
for (int i=0;;i++) {
if (date[i] == '\0')