diff --git a/arch/arm/src/kl/kl_dumpgpio.c b/arch/arm/src/kl/kl_dumpgpio.c index 3ae1708a258..ef41826e5b3 100644 --- a/arch/arm/src/kl/kl_dumpgpio.c +++ b/arch/arm/src/kl/kl_dumpgpio.c @@ -39,6 +39,15 @@ #include +/* Output debug info even if debug output is not selected. */ + +#undef CONFIG_DEBUG_ERROR +#undef CONFIG_DEBUG_WARN +#undef CONFIG_DEBUG_INFO +#define CONFIG_DEBUG_ERROR 1 +#define CONFIG_DEBUG_WARN 1 +#define CONFIG_DEBUG_INFO 1 + #include #include @@ -55,7 +64,6 @@ ****************************************************************************/ /* Port letters for prettier debug output */ -#ifdef CONFIG_DEBUG_ERROR static const char g_portchar[KL_GPIO_NPORTS] = { #if KL_GPIO_NPORTS > 9 @@ -82,7 +90,6 @@ static const char g_portchar[KL_GPIO_NPORTS] = # error "Bad number of GPIOs" #endif }; -#endif /* CONFIG_DEBUG_ERROR */ /**************************************************************************** * Public Functions @@ -99,7 +106,6 @@ static const char g_portchar[KL_GPIO_NPORTS] = void kl_dumpgpio(gpio_cfgset_t pinset, const char *msg) { -#ifdef CONFIG_DEBUG_ERROR irqstate_t flags; uintptr_t base; int port; @@ -124,7 +130,6 @@ void kl_dumpgpio(gpio_cfgset_t pinset, const char *msg) getreg32(base + KL_GPIO_PDDR_OFFSET)); leave_critical_section(flags); -#endif /* CONFIG_DEBUG_ERROR */ } #endif /* CONFIG_DEBUG_FEATURES */ diff --git a/libc/spawn/lib_psfa_dump.c b/libc/spawn/lib_psfa_dump.c index a335fe6b4cc..b56564e2ecb 100644 --- a/libc/spawn/lib_psfa_dump.c +++ b/libc/spawn/lib_psfa_dump.c @@ -39,6 +39,15 @@ #include +/* Output debug info even if debug output is not selected. */ + +#undef CONFIG_DEBUG_ERROR +#undef CONFIG_DEBUG_WARN +#undef CONFIG_DEBUG_INFO +#define CONFIG_DEBUG_ERROR 1 +#define CONFIG_DEBUG_WARN 1 +#define CONFIG_DEBUG_INFO 1 + #include #include #include @@ -47,10 +56,6 @@ #ifdef CONFIG_DEBUG_FEATURES -/**************************************************************************** - * Public Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/