mirror of
https://github.com/espressif/openthread.git
synced 2026-07-26 05:53:45 +00:00
Add NCP as a log region option in logging.h (#304)
This commit adds new log region for NCP (kLogRegionNcp). It also adds the support for posix platform logging implementation.
This commit is contained in:
committed by
Jonathan Hui
parent
2e31f499d6
commit
440ea46775
@@ -103,6 +103,10 @@ void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat
|
||||
case kLogRegionMem:
|
||||
fprintf(stderr, "MEM ");
|
||||
break;
|
||||
|
||||
case kLogRegionNcp:
|
||||
fprintf(stderr, "NCP ");
|
||||
break;
|
||||
}
|
||||
|
||||
va_start(args, aFormat);
|
||||
|
||||
@@ -85,6 +85,7 @@ typedef enum otLogRegion
|
||||
kLogRegionIp6 = 6, ///< IPv6
|
||||
kLogRegionMac = 7, ///< IEEE 802.15.4 MAC
|
||||
kLogRegionMem = 8, ///< Memory
|
||||
kLogRegionNcp = 9, ///< NCP
|
||||
} otLogRegion;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user