GDT finally works
This commit is contained in:
@ -10,4 +10,18 @@
|
||||
#define kvsnprintf vsnprintf_
|
||||
#define kvprintf vprintf_
|
||||
|
||||
#ifdef KPRINTF_COLORS
|
||||
# include "ansi_colors.h"
|
||||
# define LOG(component, fmt, ...) kprintf(CRESET "[" CYN component CRESET "]: " fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
# define LOG(component, fmt, ...) kprintf("["component"]: "fmt, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#ifdef KPRINTF_COLORS
|
||||
# include "ansi_colors.h"
|
||||
# define ERR(component, fmt, ...) kprintf(CRESET "[" RED component CRESET "]: " fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
# define ERR(component, fmt, ...) kprintf("["component"]: "fmt, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#endif // KPRINTF_H_
|
||||
|
Reference in New Issue
Block a user