Efficient DEBUG logging system with __FILE__ and fctprintf
This commit is contained in:
@@ -10,4 +10,10 @@ enum ErrorCodes
|
||||
#define CLEAR_INTERRUPTS __asm__ volatile("cli")
|
||||
#define SET_INTERRUPTS __asm__ volatile("sti")
|
||||
|
||||
#include "io/serial/serial.h"
|
||||
#include "io/term/printf.h"
|
||||
|
||||
#define DEBUG(log) \
|
||||
fctprintf((void*)&skputc, 0, "debug: [%s]: %s\n", __FILE__, log)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user