From ea6c8ed10dc12ab66ea56d61b0727c865a72bdfd Mon Sep 17 00:00:00 2001 From: Pete Skeggs Date: Thu, 26 Sep 2024 15:58:11 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Justin Morton --- subsys/net/lib/nrf_cloud/Kconfig | 1 + subsys/net/lib/nrf_cloud/src/nrf_cloud_info.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/subsys/net/lib/nrf_cloud/Kconfig b/subsys/net/lib/nrf_cloud/Kconfig index 8998c380e267..fbb08a5f9007 100644 --- a/subsys/net/lib/nrf_cloud/Kconfig +++ b/subsys/net/lib/nrf_cloud/Kconfig @@ -35,6 +35,7 @@ config NRF_CLOUD_PRINT_DETAILS config NRF_CLOUD_VERBOSE_DETAILS bool "Log more info about cloud connection" + depends on NRF_CLOUD_PRINT_DETAILS default y if NRF_CLOUD_PRINT_DETAILS help Log at INF level the stage, protocol, sec tag, host name, and team ID, diff --git a/subsys/net/lib/nrf_cloud/src/nrf_cloud_info.c b/subsys/net/lib/nrf_cloud/src/nrf_cloud_info.c index ece5df8e4d23..cf99fb1b204a 100644 --- a/subsys/net/lib/nrf_cloud/src/nrf_cloud_info.c +++ b/subsys/net/lib/nrf_cloud/src/nrf_cloud_info.c @@ -152,7 +152,7 @@ int nrf_cloud_print_details(void) int nrf_cloud_print_cloud_details(void) { int err = 0; -#if defined(CONFIG_NRF_CLOUD_PRINT_DETAILS) && defined(CONFIG_NRF_CLOUD_VERBOSE_DETAILS) +#if defined(CONFIG_NRF_CLOUD_VERBOSE_DETAILS) #if defined(CONFIG_NRF_CLOUD_MQTT) char tenant[NRF_CLOUD_TENANT_ID_MAX_LEN];