diff --git a/src/public.h b/src/public.h index 7d0013d..f751f33 100644 --- a/src/public.h +++ b/src/public.h @@ -34,6 +34,10 @@ /** Log Macros **/ +#define LOG_DEBUG 'D' +#define LOG_INFO 'I' +#define LOG_WARN 'W' + #define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) #define DEBUG(msg, ...) log_message(__FILENAME__, __LINE__, LOG_DEBUG, msg, ##__VA_ARGS__) diff --git a/src/utils/log.c b/src/utils/log.c index a838317..6497c00 100644 --- a/src/utils/log.c +++ b/src/utils/log.c @@ -1,6 +1,5 @@ #include #include -#include "commons.h" #include "utils.h" static void log_bl_smooth(bl_smooth_t *smooth, const char *prefix); diff --git a/src/utils/log.h b/src/utils/log.h index 9a154a1..bf53f00 100644 --- a/src/utils/log.h +++ b/src/utils/log.h @@ -2,9 +2,7 @@ #include -#define LOG_DEBUG 'D' -#define LOG_INFO 'I' -#define LOG_WARN 'W' +/* Internal; not exposed through public API */ #define LOG_ERR 'E' #define LOG_PLOT 'P'