kernel: use mpaland printf

This commit is contained in:
Matheus
2023-04-08 13:59:37 -03:00
parent ec9e498814
commit d8141261cb
8 changed files with 48 additions and 7 deletions
+14
View File
@@ -0,0 +1,14 @@
static void nohook(char c) {
}
static void (*hook)(char) = nohook;
// hook used by mpaland printf
void _putchar(char c) {
hook(c);
}
void logging_sethook(void (*fun)(char)) {
hook = fun;
}