Remove extconf and KPRINTF_COLORS
This commit is contained in:
@ -23,7 +23,6 @@ CFLAGS += -I. \
|
||||
-DFASTLZ_USE_MEMMOVE=0 \
|
||||
|
||||
include arch/$(ARCH)/$(ARCH).mk
|
||||
include extconf/extra.mk
|
||||
|
||||
LDFLAGS += -nostdlib -static -T arch/$(ARCH)/link.ld $(shell $(CC) -print-libgcc-file-name)
|
||||
|
||||
|
||||
@ -1 +0,0 @@
|
||||
CFLAGS += -DKPRINTF_COLORS
|
||||
@ -18,18 +18,8 @@
|
||||
#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 "[" RED1 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