From 2c75893655b05c5feedf68595d098c595aeb8f07 Mon Sep 17 00:00:00 2001 From: Sani7 Date: Mon, 6 Nov 2023 20:17:40 +0100 Subject: [PATCH] Logger Fix alignment --- project/Core/Inc/log.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/project/Core/Inc/log.h b/project/Core/Inc/log.h index c89597b..acf165f 100644 --- a/project/Core/Inc/log.h +++ b/project/Core/Inc/log.h @@ -88,17 +88,17 @@ #endif #if LOGGER_LEVEL <= 1 -#define LOG_DEBUG(tag, fmt, ...) printf(LOG_COLOR_D"[Debug] (%lu) [%s]: " fmt LOG_RESET_COLOR "\r\n", logger_get_timestamp(), tag, ##__VA_ARGS__) +#define LOG_DEBUG(tag, fmt, ...) printf(LOG_COLOR_D"[Debug] (%lu) [%s]: " fmt LOG_RESET_COLOR "\r\n", logger_get_timestamp(), tag, ##__VA_ARGS__) #else #define LOG_DEBUG(tag, fmt, ...) #endif #if LOGGER_LEVEL <= 2 -#define LOG_INFO(tag, fmt, ...) printf(LOG_COLOR_I"[Info] (%lu) [%s]: " fmt LOG_RESET_COLOR "\r\n", logger_get_timestamp(), tag, ##__VA_ARGS__) +#define LOG_INFO(tag, fmt, ...) printf(LOG_COLOR_I"[Info] (%lu) [%s]: " fmt LOG_RESET_COLOR "\r\n", logger_get_timestamp(), tag, ##__VA_ARGS__) #else #define LOG_INFO(tag, fmt, ...) #endif #if LOGGER_LEVEL <= 3 -#define LOG_WARN(tag, fmt, ...) printf(LOG_COLOR_W"[Warning] (%lu) [%s]: " fmt LOG_RESET_COLOR "\r\n", logger_get_timestamp(), tag, ##__VA_ARGS__) +#define LOG_WARN(tag, fmt, ...) printf(LOG_COLOR_W"[Warning] (%lu) [%s]: " fmt LOG_RESET_COLOR "\r\n", logger_get_timestamp(), tag, ##__VA_ARGS__) #else #define LOG_WARN(tag, fmt, ...) #endif @@ -108,7 +108,7 @@ #define LOG_CRIT(tag, fmt, ...) #endif #if LOGGER_LEVEL <= 4 -#define LOG_FATAL(tag, fmt, ...) printf(LOG_COLOR_F"[Fatal] (%lu) [%s]: " fmt LOG_RESET_COLOR "\r\n", logger_get_timestamp(), tag, ##__VA_ARGS__) +#define LOG_FATAL(tag, fmt, ...) printf(LOG_COLOR_F"[Fatal] (%lu) [%s]: " fmt LOG_RESET_COLOR "\r\n", logger_get_timestamp(), tag, ##__VA_ARGS__) #else #define LOG_FATAL(tag, fmt, ...) #endif