log always is now always

This commit is contained in:
folkert van heusden 2023-03-11 21:54:04 +01:00
parent 3ef8bd930d
commit e643952a2f

2
log.h
View file

@ -14,6 +14,6 @@ void dolog(const log_level_t ll, const char *fmt, ...);
#define DOLOG(ll, always, fmt, ...) do { \
extern log_level_t log_level_file, log_level_screen; \
\
if (always && (ll >= log_level_file || ll >= log_level_screen)) \
if (always || ll >= log_level_file || ll >= log_level_screen) \
dolog(ll, fmt, ##__VA_ARGS__); \
} while(0)