set mbedTLS debug level according to that of OpenThread (#1916)

This commit is contained in:
Buke Po
2017-06-20 00:38:44 -07:00
committed by Jonathan Hui
parent a768eaf55e
commit ae0e831033
+2 -2
View File
@@ -103,8 +103,8 @@ otError Dtls::Start(bool aClient, ConnectedHandler aConnectedHandler, ReceiveHan
mbedtls_ctr_drbg_init(&mCtrDrbg);
mbedtls_entropy_init(&mEntropy);
mbedtls_debug_set_threshold(4);
// mbedTLS's debug level is almost the same as OpenThread's
mbedtls_debug_set_threshold(OPENTHREAD_CONFIG_LOG_LEVEL);
otPlatRadioGetIeeeEui64(GetInstance(), eui64.m8);
rval = mbedtls_ctr_drbg_seed(&mCtrDrbg, mbedtls_entropy_func, &mEntropy, eui64.m8, sizeof(eui64));
VerifyOrExit(rval == 0);