feat(log): Make the buffer log API available to bootloader

This commit is contained in:
Konstantin Kondrashov 2024-05-17 22:54:41 +03:00 committed by BOT
parent a5bc08fb55
commit bc46512ad5
2 changed files with 2 additions and 8 deletions

View File

@ -14,7 +14,9 @@ endif()
set(srcs "src/${system_target}/log_timestamp.c"
"src/log_timestamp_common.c"
"src/${system_target}/log_lock.c"
"src/buffer/log_buffers.c"
"src/${system_target}/util.c"
"src/util.c"
"src/log_print.c"
"src/log.c")
@ -25,10 +27,6 @@ if(NOT non_os_build)
list(APPEND srcs "src/os/log_write.c")
# Buffer APIs call ESP_LOG_LEVEL -> esp_log_write, which can not used in bootloader.
list(APPEND srcs "src/buffer/log_buffers.c"
"src/util.c")
list(APPEND srcs "src/log_level/log_level.c"
"src/log_level/tag_log_level/tag_log_level.c")

View File

@ -13,8 +13,6 @@
extern "C" {
#endif
#if !NON_OS_BUILD || __DOXYGEN__
/**
* @brief Logs a buffer of hexadecimal bytes at the specified log level.
*
@ -173,8 +171,6 @@ static inline void esp_log_buffer_char(const char *tag, const void *buffer, uint
}
/** @endcond */
#endif // !NON_OS_BUILD || __DOXYGEN__
#ifdef __cplusplus
}
#endif