Skip to content

Commit

Permalink
set printf as default logging method
Browse files Browse the repository at this point in the history
  • Loading branch information
QuangHaiNguyen committed Oct 24, 2024
1 parent 716754f commit 465c032
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions easy_embedded/utilities/logging/ez_logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 465c032

Please sign in to comment.