Efficient DEBUG logging system with __FILE__ and fctprintf

This commit is contained in:
2025-12-28 12:15:32 +01:00
parent ead0ed6ae1
commit 3853a1ace3
9 changed files with 55 additions and 40 deletions

View File

@@ -1,10 +1,10 @@
// PS/2 Keyboard support
#include "../serial/serial.h"
#include "../term/printf.h"
#include "ps2.h"
#include <stdint.h>
#include "../term/term.h"
#include <kernel.h>
// The key status bitfield will be used to see if ALT, CONTROL, or SHIFT is pressed
uint8_t key_status = 0b00000000;
@@ -206,7 +206,7 @@ void keyboard_handler()
}
}
serial_kputs("key pressed!\n");
skputs("key pressed!\n");
}
// End of Interrupt (to master PIC)
@@ -230,7 +230,8 @@ void keyboard_init(unsigned char layout)
break;
default:
serial_kputs("Unsupported layout.");
break;
skputs("Unsupported layout.");
return;
}
DEBUG("PS/2 Keyboard initialized");
}