Skip to content

Commit

Permalink
Add missing LwIPLog for bouffalolab platform
Browse files Browse the repository at this point in the history
Referred to in src/lwip/bl702{,l}/arch/cc.h but not implemented either
in platform (like other platforms did) nor in the bl sdk in third_party.

Signed-off-by: Alexander Mazuruk <aalexanderr@gmail.com>
  • Loading branch information
aalexanderr committed Oct 25, 2023
1 parent 75e04d0 commit f283817
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/platform/bouffalolab/common/Logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,20 @@ extern "C" void otPlatLog(int aLogLevel, int aLogRegion, const char * aFormat, .
va_end(v);
}
#endif

#if CHIP_SYSTEM_CONFIG_USE_LWIP
/**
* LwIP log output function.
*/
extern "C" void LwIPLog(const char * msg, ...)
{
va_list v;
uint8_t category = chip::Logging::kLogCategory_Error;

va_start(v, msg);

chip::Logging::Platform::LogV("LWIP", category, msg, v);

va_end(v);
}
#endif // #if CHIP_SYSTEM_CONFIG_USE_LWIP

0 comments on commit f283817

Please sign in to comment.