From 465c0320f8a135aabfba87ae26e7a731ee04a03e Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Thu, 24 Oct 2024 23:29:18 +0200 Subject: [PATCH] set printf as default logging method --- easy_embedded/utilities/logging/ez_logging.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/easy_embedded/utilities/logging/ez_logging.h b/easy_embedded/utilities/logging/ez_logging.h index fc9f502..30321a8 100755 --- a/easy_embedded/utilities/logging/ez_logging.h +++ b/easy_embedded/utilities/logging/ez_logging.h @@ -53,7 +53,10 @@ extern "C" { #define PRINT_LINE 0U /**< logging shows line number */ #define PRINT_FUNCTION_NAME 0U /**< logging shows function name */ +/* Print data on stdout by default */ +#ifndef dbg_print(fmt, ...) #define dbg_print(fmt, ...) printf(fmt, ##__VA_ARGS__) +#endif #if (EZ_LOGGING_COLOR == 1U) #define black "\033[0;30m"