mirror of
https://github.com/espressif/openthread.git
synced 2026-09-06 09:10:04 +00:00
Fixed typo that is crashing the build when MAC logging is enabled: (#1445)
CXX thread/libopenthread_ftd_a-announce_begin_server.o
In file included from /home/gr3yh0und/Downloads/openthread/examples/../src/core/mac/mac.cpp:50:0:
/home/gr3yh0und/Downloads/openthread/examples/../src/core/mac/mac.cpp: In member function 'void Thread::Mac::Mac::ReceiveDoneTask(Thread::Mac::Frame*, ThreadError)':
/home/gr3yh0und/Downloads/openthread/examples/../src/core/mac/mac.cpp:1479:40: error: expected ')' before 'error'
otLogDebgMacErr(GetInstance(), error, "Dropping received frame");
This commit is contained in:
@@ -537,7 +537,7 @@ extern "C" {
|
||||
#define otLogWarnMac(aInstance, aFormat, ...) otLogWarn(kLogRegionMac, aFormat, ## __VA_ARGS__)
|
||||
#define otLogInfoMac(aInstance, aFormat, ...) otLogInfo(kLogRegionMac, aFormat, ## __VA_ARGS__)
|
||||
#define otLogDebgMac(aInstance, aFormat, ...) otLogDebg(kLogRegionMac, aFormat, ## __VA_ARGS__)
|
||||
#define otLogDebgMacErr(aError, aFormat, ...) otLogWarn(kLogRegionMac, "Error %s: " aFormat, otThreadErrorToString(aError), ## __VA_ARGS__)
|
||||
#define otLogDebgMacErr(aInstance, aError, aFormat, ...) otLogWarn(kLogRegionMac, "Error %s: " aFormat, otThreadErrorToString(aError), ## __VA_ARGS__)
|
||||
#else
|
||||
#define otLogCritMac(aInstance, aFormat, ...)
|
||||
#define otLogWarnMac(aInstance, aFormat, ...)
|
||||
|
||||
Reference in New Issue
Block a user