Skip to content

Commit 19134fc

Browse files
JordanYatescfriedt
authored andcommitted
net: lib: tls_credentials: fix unregistered log module
A logging module named `tls_credentials` was being declared, but no other source module was creating and registering it. Do the registration in the file to fix the compiler error. Signed-off-by: Jordan Yates <[email protected]>
1 parent edf8a24 commit 19134fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

subsys/net/lib/tls_credentials/tls_credentials.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313

1414
#include <zephyr/logging/log.h>
1515

16-
LOG_MODULE_DECLARE(tls_credentials,
17-
CONFIG_TLS_CREDENTIALS_LOG_LEVEL);
16+
LOG_MODULE_REGISTER(tls_credentials, CONFIG_TLS_CREDENTIALS_LOG_LEVEL);
1817

1918
/* Global pool of credentials shared among TLS contexts. */
2019
static struct tls_credential credentials[CONFIG_TLS_MAX_CREDENTIALS_NUMBER];

0 commit comments

Comments
 (0)