Skip to content

Commit

Permalink
fixup! Change log level for some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Jul 30, 2024
1 parent 0e44786 commit bee281a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions security/oc_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,19 +312,19 @@ oc_tls_get_trust_anchors(void)
}
#endif /* OC_PKI */

#if OC_DBG_IS_ENABLED
#if OC_TRACE_IS_ENABLED
static void
oc_mbedtls_debug(void *ctx, int level, const char *file, int line,
const char *str)
{
(void)ctx;
(void)level;
OC_DBG("mbedtls_log: %s:%04d: %s", file, line, str);
OC_TRACE("mbedtls_log: %s:%04d: %s", file, line, str);
(void)file;
(void)line;
(void)str;
}
#endif /* OC_DBG_IS_ENABLED */
#endif /* OC_TRACE_IS_ENABLED */

static bool
is_peer_active(const oc_tls_peer_t *peer)
Expand Down Expand Up @@ -1985,9 +1985,9 @@ oc_tls_populate_ssl_config(mbedtls_ssl_config *conf, size_t device, int role,
}
}

#if OC_DBG_IS_ENABLED
#if OC_TRACE_IS_ENABLED
mbedtls_ssl_conf_dbg(conf, oc_mbedtls_debug, stdout);
#endif /* OC_DBG_IS_ENABLED */
#endif /* OC_TRACE_IS_ENABLED */

mbedtls_ssl_conf_rng(conf, mbedtls_ctr_drbg_random, &g_oc_ctr_drbg_ctx);
#if MBEDTLS_VERSION_NUMBER <= 0x03010000
Expand Down

0 comments on commit bee281a

Please sign in to comment.