Skip to content

Commit

Permalink
logging: add print_info function
Browse files Browse the repository at this point in the history
This is for debugging print.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t authored and igaw committed Sep 9, 2024
1 parent 0dca717 commit 93a075b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

#include <stdbool.h>

#define print_info(...) \
do { \
if (log_level >= LOG_INFO) \
printf(__VA_ARGS__); \
} while (false)

extern int log_level;

int map_log_level(int verbose, bool quiet);
Expand Down

0 comments on commit 93a075b

Please sign in to comment.