[logging] remove otLogInfoCoapErr (#4398)

This commit is contained in:
Jonathan Hui
2019-12-13 17:18:16 -08:00
parent 88b2fa6fbb
commit 36aebfae2a
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -604,7 +604,7 @@ exit:
if (error != OT_ERROR_NONE)
{
otLogInfoCoapErr(error, "Failed to process request");
otLogInfoCoap("Failed to process request: %s", otThreadErrorToString(error));
if (error == OT_ERROR_NOT_FOUND && !aMessageInfo.GetSockAddr().IsMulticast())
{
-4
View File
@@ -1129,16 +1129,12 @@ extern "C" {
#define otLogWarnCoap(aFormat, ...) otLogWarn(OT_LOG_REGION_COAP, _OT_REGION_COAP_PREFIX aFormat, ##__VA_ARGS__)
#define otLogNoteCoap(aFormat, ...) otLogNote(OT_LOG_REGION_COAP, _OT_REGION_COAP_PREFIX aFormat, ##__VA_ARGS__)
#define otLogInfoCoap(aFormat, ...) otLogInfo(OT_LOG_REGION_COAP, _OT_REGION_COAP_PREFIX aFormat, ##__VA_ARGS__)
#define otLogInfoCoapErr(aError, aFormat, ...) \
otLogInfo(OT_LOG_REGION_COAP, _OT_REGION_COAP_PREFIX "Error %s: " aFormat, otThreadErrorToString(aError), \
##__VA_ARGS__)
#define otLogDebgCoap(aFormat, ...) otLogDebg(OT_LOG_REGION_COAP, _OT_REGION_COAP_PREFIX aFormat, ##__VA_ARGS__)
#else
#define otLogCritCoap(aFormat, ...)
#define otLogWarnCoap(aFormat, ...)
#define otLogNoteCoap(aFormat, ...)
#define otLogInfoCoap(aFormat, ...)
#define otLogInfoCoapErr(aError, aFormat, ...)
#define otLogDebgCoap(aFormat, ...)
#endif