From 36817cfc217977f71b8eee764d197c54f7de5534 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Mon, 14 Nov 2022 18:57:40 +0100 Subject: [PATCH] fix: properly expoe multiple LOG_ macros in public API. Signed-off-by: Federico Di Pierro --- src/public.h | 4 ++++ src/utils/log.c | 1 - src/utils/log.h | 4 +--- 3 files changed, 5 insertions(+), 4 deletions(-) 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'