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
+18
View File
@@ -0,0 +1,18 @@
#ifndef _LOGGING_H
#define _LOGGING_H
#include <printf.h>
void _putchar(char c);
void logging_sethook(void (*fun)(char));
// TODO panic
#define __assert(x) \
if (!(x)){ \
printf("%s:%s:%d: %s failed\n", __FILE__, __func__, __LINE__, #x); \
for(;;); \
};
#endif