Efficient DEBUG logging system with __FILE__ and fctprintf
This commit is contained in:
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user