![]() |
0.01.00
|
This file includes functions for debugging. More...
#include "openthread-core-config.h"
#include <ctype.h>
#include <stdio.h>
#include "utils/wrap_string.h"
#include <openthread/instance.h>
#include <openthread/types.h>
#include <openthread/platform/logging.h>
Go to the source code of this file.
Macros | |
#define | otLogFuncEntry() |
#define | otLogFuncEntryMsg(aFormat, ...) |
#define | otLogFuncExit() |
#define | otLogFuncExitMsg(aFormat, ...) |
#define | otLogFuncExitErr(error) |
#define | otLogCrit(aInstance, aRegion, aFormat, ...) |
Logging at log level critical. More... | |
#define | otLogWarn(aInstance, aRegion, aFormat, ...) |
Logging at log level warning. More... | |
#define | otLogInfo(aInstance, aRegion, aFormat, ...) |
Logging at log level info. More... | |
#define | otLogDebg(aInstance, aRegion, aFormat, ...) |
Logging at log level debug. More... | |
#define | otLogCritApi(aInstance, aFormat, ...) |
This method generates a log with level critical for the API region. More... | |
#define | otLogWarnApi(aInstance, aFormat, ...) |
This method generates a log with level warning for the API region. More... | |
#define | otLogInfoApi(aInstance, aFormat, ...) |
This method generates a log with level info for the API region. More... | |
#define | otLogDebgApi(aInstance, aFormat, ...) |
This method generates a log with level debug for the API region. More... | |
#define | otLogCritMeshCoP(aInstance, aFormat, ...) |
This method generates a log with level critical for the MLE region. More... | |
#define | otLogWarnMeshCoP(aInstance, aFormat, ...) |
This method generates a log with level warning for the MLE region. More... | |
#define | otLogInfoMeshCoP(aInstance, aFormat, ...) |
This method generates a log with level info for the MLE region. More... | |
#define | otLogDebgMeshCoP(aInstance, aFormat, ...) |
This method generates a log with level debug for the MLE region. More... | |
#define | otLogCritMbedTls(aInstance, aFormat, ...) otLogCritMeshCoP(aInstance, aFormat, ## __VA_ARGS__) |
#define | otLogWarnMbedTls(aInstance, aFormat, ...) otLogWarnMeshCoP(aInstance, aFormat, ## __VA_ARGS__) |
#define | otLogInfoMbedTls(aInstance, aFormat, ...) otLogInfoMeshCoP(aInstance, aFormat, ## __VA_ARGS__) |
#define | otLogDebgMbedTls(aInstance, aFormat, ...) otLogDebgMeshCoP(aInstance, aFormat, ## __VA_ARGS__) |
#define | otLogCritMle(aInstance, aFormat, ...) |
This method generates a log with level critical for the MLE region. More... | |
#define | otLogWarnMle(aInstance, aFormat, ...) |
This method generates a log with level warning for the MLE region. More... | |
#define | otLogWarnMleErr(aInstance, aError, aFormat, ...) |
#define | otLogInfoMle(aInstance, aFormat, ...) |
This method generates a log with level info for the MLE region. More... | |
#define | otLogDebgMle(aInstance, aFormat, ...) |
This method generates a log with level debug for the MLE region. More... | |
#define | otLogCritArp(aInstance, aFormat, ...) |
This method generates a log with level critical for the EID-to-RLOC mapping region. More... | |
#define | otLogWarnArp(aInstance, aFormat, ...) |
This method generates a log with level warning for the EID-to-RLOC mapping region. More... | |
#define | otLogInfoArp(aInstance, aFormat, ...) |
This method generates a log with level info for the EID-to-RLOC mapping region. More... | |
#define | otLogDebgArp(aInstance, aFormat, ...) |
This method generates a log with level debug for the EID-to-RLOC mapping region. More... | |
#define | otLogCritNetData(aInstance, aFormat, ...) |
This method generates a log with level critical for the Network Data region. More... | |
#define | otLogWarnNetData(aInstance, aFormat, ...) |
This method generates a log with level warning for the Network Data region. More... | |
#define | otLogInfoNetData(aInstance, aFormat, ...) |
This method generates a log with level info for the Network Data region. More... | |
#define | otLogDebgNetData(aInstance, aFormat, ...) |
This method generates a log with level debug for the Network Data region. More... | |
#define | otLogCritIcmp(aInstance, aFormat, ...) |
This method generates a log with level critical for the ICMPv6 region. More... | |
#define | otLogWarnIcmp(aInstance, aFormat, ...) |
This method generates a log with level warning for the ICMPv6 region. More... | |
#define | otLogInfoIcmp(aInstance, aFormat, ...) |
This method generates a log with level info for the ICMPv6 region. More... | |
#define | otLogDebgIcmp(aInstance, aFormat, ...) |
This method generates a log with level debug for the ICMPv6 region. More... | |
#define | otLogCritIp6(aInstance, aFormat, ...) |
This method generates a log with level critical for the IPv6 region. More... | |
#define | otLogWarnIp6(aInstance, aFormat, ...) |
This method generates a log with level warning for the IPv6 region. More... | |
#define | otLogInfoIp6(aInstance, aFormat, ...) |
This method generates a log with level info for the IPv6 region. More... | |
#define | otLogDebgIp6(aInstance, aFormat, ...) |
This method generates a log with level debug for the IPv6 region. More... | |
#define | otLogCritMac(aInstance, aFormat, ...) |
This method generates a log with level critical for the MAC region. More... | |
#define | otLogWarnMac(aInstance, aFormat, ...) |
This method generates a log with level warning for the MAC region. More... | |
#define | otLogInfoMac(aInstance, aFormat, ...) |
This method generates a log with level info for the MAC region. More... | |
#define | otLogDebgMac(aInstance, aFormat, ...) |
This method generates a log with level debug for the MAC region. More... | |
#define | otLogDebgMacErr(aInstance, aError, aFormat, ...) |
#define | otLogCritMem(aInstance, aFormat, ...) |
This method generates a log with level critical for the memory region. More... | |
#define | otLogWarnMem(aInstance, aFormat, ...) |
This method generates a log with level warning for the memory region. More... | |
#define | otLogInfoMem(aInstance, aFormat, ...) |
This method generates a log with level info for the memory region. More... | |
#define | otLogDebgMem(aInstance, aFormat, ...) |
This method generates a log with level debug for the memory region. More... | |
#define | otLogCritNetDiag(aInstance, aFormat, ...) |
This method generates a log with level critical for the NETDIAG region. More... | |
#define | otLogWarnNetDiag(aInstance, aFormat, ...) |
This method generates a log with level warning for the NETDIAG region. More... | |
#define | otLogInfoNetDiag(aInstance, aFormat, ...) |
This method generates a log with level info for the NETDIAG region. More... | |
#define | otLogDebgNetDiag(aInstance, aFormat, ...) |
This method generates a log with level debug for the NETDIAG region. More... | |
#define | otLogCertMeshCoP(aInstance, aFormat, ...) |
#define | otLogCritCli(aInstance, aFormat, ...) |
This method generates a log with level critical for the CLI region. More... | |
#define | otLogWarnCli(aInstance, aFormat, ...) |
This method generates a log with level warning for the CLI region. More... | |
#define | otLogInfoCli(aInstance, aFormat, ...) |
This method generates a log with level info for the CLI region. More... | |
#define | otLogInfoCliErr(aInstance, aError, aFormat, ...) |
#define | otLogDebgCli(aInstance, aFormat, ...) |
This method generates a log with level debug for the CLI region. More... | |
#define | otLogCritCoap(aInstance, aFormat, ...) |
This method generates a log with level critical for the CoAP region. More... | |
#define | otLogWarnCoap(aInstance, aFormat, ...) |
This method generates a log with level warning for the CoAP region. More... | |
#define | otLogInfoCoap(aInstance, aFormat, ...) |
This method generates a log with level info for the CoAP region. More... | |
#define | otLogInfoCoapErr(aInstance, aError, aFormat, ...) |
#define | otLogDebgCoap(aInstance, aFormat, ...) |
This method generates a log with level debug for the CoAP region. More... | |
#define | otLogCritPlat(aInstance, aFormat, ...) |
This method generates a log with level critical for the Platform region. More... | |
#define | otLogWarnPlat(aInstance, aFormat, ...) |
This method generates a log with level warning for the Platform region. More... | |
#define | otLogInfoPlat(aInstance, aFormat, ...) |
This method generates a log with level info for the Platform region. More... | |
#define | otLogDebgPlat(aInstance, aFormat, ...) |
This method generates a log with level debug for the Platform region. More... | |
#define | otDumpCrit(aInstance, aRegion, aId, aBuf, aLength) |
This method generates a memory dump with log level critical. More... | |
#define | otDumpWarn(aInstance, aRegion, aId, aBuf, aLength) |
This method generates a memory dump with log level warning. More... | |
#define | otDumpInfo(aInstance, aRegion, aId, aBuf, aLength) |
This method generates a memory dump with log level info. More... | |
#define | otDumpDebg(aInstance, aRegion, aId, aBuf, aLength) |
This method generates a memory dump with log level debug. More... | |
#define | otDumpCritNetData(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region Network Data. More... | |
#define | otDumpWarnNetData(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level warning and region Network Data. More... | |
#define | otDumpInfoNetData(aInstance, aId, aBuf, aLength) |
#define | otDumpDebgNetData(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region Network Data. More... | |
#define | otDumpCritMle(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region MLE. More... | |
#define | otDumpWarnMle(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level warning and region MLE. More... | |
#define | otDumpInfoMle(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level info and region MLE. More... | |
#define | otDumpDebgMle(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region MLE. More... | |
#define | otDumpCritArp(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region EID-to-RLOC mapping. More... | |
#define | otDumpWarnArp(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level warning and region EID-to-RLOC mapping. More... | |
#define | otDumpInfoArp(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level info and region EID-to-RLOC mapping. More... | |
#define | otDumpDebgArp(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region EID-to-RLOC mapping. More... | |
#define | otDumpCritIcmp(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region ICMPv6. More... | |
#define | otDumpWarnIcmp(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level warning and region ICMPv6. More... | |
#define | otDumpInfoIcmp(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level info and region ICMPv6. More... | |
#define | otDumpDebgIcmp(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region ICMPv6. More... | |
#define | otDumpCritIp6(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region IPv6. More... | |
#define | otDumpWarnIp6(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level warning and region IPv6. More... | |
#define | otDumpInfoIp6(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level info and region IPv6. More... | |
#define | otDumpDebgIp6(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region IPv6. More... | |
#define | otDumpCritMac(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region MAC. More... | |
#define | otDumpWarnMac(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level warning and region MAC. More... | |
#define | otDumpInfoMac(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level info and region MAC. More... | |
#define | otDumpDebgMac(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region MAC. More... | |
#define | otDumpCritMem(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region memory. More... | |
#define | otDumpWarnMem(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level warning and region memory. More... | |
#define | otDumpInfoMem(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level info and region memory. More... | |
#define | otDumpDebgMem(aInstance, aId, aBuf, aLength) |
This method generates a memory dump with log level debug and region memory. More... | |
#define | otDumpCertMeshCoP(aInstance, aId, aBuf, aLength) |
#define | _otLogFormatter(aInstance, aLogLevel, aRegion, aFormat, ...) |
Local/private macro to format the log message. More... | |
#define | _otDynamicLog(aInstance, aLogLevel, aRegion, aFormat, ...) _otPlatLog(aLogLevel, aRegion, aFormat, ## __VA_ARGS__) |
#define | _otPlatLog(aLogLevel, aRegion, aFormat, ...) OPENTHREAD_CONFIG_PLAT_LOG_FUNCTION(aLogLevel, aRegion, aFormat, ## __VA_ARGS__) |
OPENTHREAD_CONFIG_PLAT_LOG_FUNCTION is a configuration parameter (see openthread-core-default-config.h ) which specifies the function/macro to be used for logging in OpenThread. More... | |
Functions | |
void | otDump (otInstance *aIntsance, otLogLevel aLevel, otLogRegion aRegion, const char *aId, const void *aBuf, const size_t aLength) |
This method dumps bytes to the log in a human-readable fashion. More... | |
This file includes functions for debugging.
#define _otLogFormatter | ( | aInstance, | |
aLogLevel, | |||
aRegion, | |||
aFormat, | |||
... | |||
) |
Local/private macro to format the log message.
#define _otPlatLog | ( | aLogLevel, | |
aRegion, | |||
aFormat, | |||
... | |||
) | OPENTHREAD_CONFIG_PLAT_LOG_FUNCTION(aLogLevel, aRegion, aFormat, ## __VA_ARGS__) |
OPENTHREAD_CONFIG_PLAT_LOG_FUNCTION
is a configuration parameter (see openthread-core-default-config.h
) which specifies the function/macro to be used for logging in OpenThread.
By default it is set to otPlatLog()
.
#define otDumpCrit | ( | aInstance, | |
aRegion, | |||
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level critical.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aRegion | The log region. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpCritArp | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region EID-to-RLOC mapping.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpCritIcmp | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region ICMPv6.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpCritIp6 | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region IPv6.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpCritMac | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region MAC.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpCritMem | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region memory.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpCritMle | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region MLE.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpCritNetData | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region Network Data.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpDebg | ( | aInstance, | |
aRegion, | |||
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aRegion | The log region. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpDebgArp | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region EID-to-RLOC mapping.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpDebgIcmp | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region ICMPv6.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpDebgIp6 | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region IPv6.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpDebgMac | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region MAC.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpDebgMem | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region memory.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpDebgMle | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region MLE.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpDebgNetData | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level debug and region Network Data.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpInfo | ( | aInstance, | |
aRegion, | |||
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level info.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aRegion | The log region. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpInfoArp | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level info and region EID-to-RLOC mapping.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpInfoIcmp | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level info and region ICMPv6.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpInfoIp6 | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level info and region IPv6.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpInfoMac | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level info and region MAC.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpInfoMem | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level info and region memory.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpInfoMle | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level info and region MLE.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpInfoNetData | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpWarn | ( | aInstance, | |
aRegion, | |||
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level warning.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aRegion | The log region. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpWarnArp | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level warning and region EID-to-RLOC mapping.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpWarnIcmp | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level warning and region ICMPv6.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpWarnIp6 | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level warning and region IPv6.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpWarnMac | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level warning and region MAC.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpWarnMem | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level warning and region memory.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpWarnMle | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level warning and region MLE.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otDumpWarnNetData | ( | aInstance, | |
aId, | |||
aBuf, | |||
aLength | |||
) |
This method generates a memory dump with log level warning and region Network Data.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |
#define otLogCrit | ( | aInstance, | |
aRegion, | |||
aFormat, | |||
... | |||
) |
Logging at log level critical.
[in] | aInstance | A pointer to the OpenThread instance. |
[in] | aRegion | The log region. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritApi | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the API region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritArp | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the EID-to-RLOC mapping region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritCli | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the CLI region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritCoap | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the CoAP region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritIcmp | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the ICMPv6 region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritIp6 | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the IPv6 region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritMac | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the MAC region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritMem | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the memory region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritMeshCoP | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the MLE region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritMle | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the MLE region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritNetData | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the Network Data region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritNetDiag | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the NETDIAG region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogCritPlat | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level critical for the Platform region.
[in] | aInstance | A pointer to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebg | ( | aInstance, | |
aRegion, | |||
aFormat, | |||
... | |||
) |
Logging at log level debug.
[in] | aInstance | A pointer to the OpenThread instance. |
[in] | aRegion | The log region. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgApi | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the API region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgArp | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the EID-to-RLOC mapping region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgCli | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the CLI region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgCoap | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the CoAP region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgIcmp | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the ICMPv6 region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgIp6 | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the IPv6 region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgMac | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the MAC region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgMem | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the memory region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgMeshCoP | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the MLE region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgMle | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the MLE region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgNetData | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the Network Data region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgNetDiag | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the NETDIAG region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogDebgPlat | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level debug for the Platform region.
[in] | aInstance | A pointer to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfo | ( | aInstance, | |
aRegion, | |||
aFormat, | |||
... | |||
) |
Logging at log level info.
[in] | aInstance | A pointer to the OpenThread instance. |
[in] | aRegion | The log region. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoApi | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the API region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoArp | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the EID-to-RLOC mapping region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoCli | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the CLI region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoCoap | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the CoAP region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoIcmp | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the ICMPv6 region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoIp6 | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the IPv6 region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoMac | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the MAC region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoMem | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the memory region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoMeshCoP | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the MLE region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoMle | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the MLE region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoNetData | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the Network Data region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoNetDiag | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the NETDIAG region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogInfoPlat | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level info for the Platform region.
[in] | aInstance | A pointer to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarn | ( | aInstance, | |
aRegion, | |||
aFormat, | |||
... | |||
) |
Logging at log level warning.
[in] | aInstance | A pointer to the OpenThread instance. |
[in] | aRegion | The log region. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnApi | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the API region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnArp | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the EID-to-RLOC mapping region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnCli | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the CLI region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnCoap | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the CoAP region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnIcmp | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the ICMPv6 region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnIp6 | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the IPv6 region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnMac | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the MAC region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnMem | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the memory region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnMeshCoP | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the MLE region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnMle | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the MLE region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnNetData | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the Network Data region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnNetDiag | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the NETDIAG region.
[in] | aInstance | A reference to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
#define otLogWarnPlat | ( | aInstance, | |
aFormat, | |||
... | |||
) |
This method generates a log with level warning for the Platform region.
[in] | aInstance | A pointer to the OpenThread instance. |
[in] | aFormat | A pointer to the format string. |
[in] | ... | Arguments for the format specification. |
void otDump | ( | otInstance * | aIntsance, |
otLogLevel | aLevel, | ||
otLogRegion | aRegion, | ||
const char * | aId, | ||
const void * | aBuf, | ||
const size_t | aLength | ||
) |
This method dumps bytes to the log in a human-readable fashion.
[in] | aInstance | A pointer to the instance. |
[in] | aLevel | The log level. |
[in] | aRegion | The log region. |
[in] | aId | A pointer to a NULL-terminated string that is printed before the bytes. |
[in] | aBuf | A pointer to the buffer. |
[in] | aLength | Number of bytes to print. |