From d97c9e9230666f8aa14f1ff63bf4f34b9a903fb3 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:47:38 +0800 Subject: [PATCH] Fix --- include/sled/log/log.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/sled/log/log.h b/include/sled/log/log.h index c649d01..6798b8a 100644 --- a/include/sled/log/log.h +++ b/include/sled/log/log.h @@ -84,10 +84,10 @@ void Log(LogLevel level, const char *tag, const char *fmt, const char *file_name } while (0) #define LOGV_EVERY_N(n, tag, fmt, ...) __LOG_EVERY_N(n, sled::LogLevel::kTrace, tag, fmt, ##__VA_ARGS__) -#define LOGD_EVERY_N(n, tag, fmt, ...) LOG_EVERY_N(n, sled::LogLevel::kDebug, tag, fmt, ##__VA_ARGS__) -#define LOGI_EVERY_N(n, tag, fmt, ...) LOG_EVERY_N(n, sled::LogLevel::kInfo, tag, fmt, ##__VA_ARGS__) -#define LOGW_EVERY_N(n, tag, fmt, ...) LOG_EVERY_N(n, sled::LogLevel::kWarning, tag, fmt, ##__VA_ARGS__) -#define LOGE_EVERY_N(n, tag, fmt, ...) LOG_EVERY_N(n, sled::LogLevel::kError, tag, fmt, ##__VA_ARGS__) -#define LOGF_EVERY_N(n, tag, fmt, ...) LOG_EVERY_N(n, sled::LogLevel::kFatal, tag, fmt, ##__VA_ARGS__) +#define LOGD_EVERY_N(n, tag, fmt, ...) __LOG_EVERY_N(n, sled::LogLevel::kDebug, tag, fmt, ##__VA_ARGS__) +#define LOGI_EVERY_N(n, tag, fmt, ...) __LOG_EVERY_N(n, sled::LogLevel::kInfo, tag, fmt, ##__VA_ARGS__) +#define LOGW_EVERY_N(n, tag, fmt, ...) __LOG_EVERY_N(n, sled::LogLevel::kWarning, tag, fmt, ##__VA_ARGS__) +#define LOGE_EVERY_N(n, tag, fmt, ...) __LOG_EVERY_N(n, sled::LogLevel::kError, tag, fmt, ##__VA_ARGS__) +#define LOGF_EVERY_N(n, tag, fmt, ...) __LOG_EVERY_N(n, sled::LogLevel::kFatal, tag, fmt, ##__VA_ARGS__) #endif// SLED_LOG_LOG_H