[mac] update the log message for otPlatRadioSleep() failure (#2123)

This commit is contained in:
Abtin Keshavarzian
2017-08-22 18:41:22 -07:00
committed by Jonathan Hui
parent 97a2fc4cc3
commit 3523796722
+4 -7
View File
@@ -1155,15 +1155,12 @@ otError Mac::RadioSleep(void)
#endif
SuccessOrExit(error = otPlatRadioSleep(&GetInstance()));
error = otPlatRadioSleep(&GetInstance());
VerifyOrExit(error != OT_ERROR_NONE);
otLogWarnMac(GetInstance(), "otPlatRadioSleep() failed with error %s", otThreadErrorToString(error));
exit:
if (error != OT_ERROR_NONE)
{
otLogWarnMac(GetInstance(), "otPlatRadioSleep() failed with error %s", otThreadErrorToString(error));
}
return error;
}