log always is now always
This commit is contained in:
parent
3ef8bd930d
commit
e643952a2f
1 changed files with 1 additions and 1 deletions
2
log.h
2
log.h
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue