diff options
| author | 2025-11-30 13:18:12 -0500 | |
|---|---|---|
| committer | 2025-11-30 13:18:12 -0500 | |
| commit | 9f609ba97ca4ae1b59f4718ce310576e7935f155 (patch) | |
| tree | 3679613f827f1ea6c8663896a3c1b4565367bfd5 | |
| parent | 9803fbbf7a450aadab6008d061221eaf9279d398 (diff) | |
| download | libalabaster-9f609ba97ca4ae1b59f4718ce310576e7935f155.tar.gz libalabaster-9f609ba97ca4ae1b59f4718ce310576e7935f155.tar.bz2 libalabaster-9f609ba97ca4ae1b59f4718ce310576e7935f155.zip | |
log: If TRACE is enabled also include debug logs
Signed-off-by: Andrew Opalach <andrew@akon.city>
| -rw-r--r-- | include/al/log.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/al/log.h b/include/al/log.h index f3c61b1..7fd72dd 100644 --- a/include/al/log.h +++ b/include/al/log.h @@ -37,7 +37,7 @@ s32 _al_logv(u8 level, const char *section, const char *name, const s32 line, co #define log_info(fmt, ...) al_log(AL_LOG_INFO, AL_LOG_SECTION_NAME, fmt, ##__VA_ARGS__) #define log_warn(fmt, ...) al_log(AL_LOG_WARN, AL_LOG_SECTION_NAME, fmt, ##__VA_ARGS__) #define log_error(fmt, ...) al_log(AL_LOG_ERROR, AL_LOG_SECTION_NAME, fmt, ##__VA_ARGS__) -#ifdef AL_DEBUG +#if defined AL_DEBUG || defined AL_LOG_ENABLE_TRACE #define log_debug(fmt, ...) al_log(AL_LOG_DEBUG, AL_LOG_SECTION_NAME, fmt, ##__VA_ARGS__) #else #define log_debug(fmt, ...) al_log_nop(AL_LOG_SECTION_NAME, fmt, ##__VA_ARGS__) |