mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Rethink some recent warning removal logic
This commit is contained in:
@@ -39,6 +39,15 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
/* 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 <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
@@ -55,7 +64,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
/* Port letters for prettier debug output */
|
/* Port letters for prettier debug output */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_ERROR
|
|
||||||
static const char g_portchar[KL_GPIO_NPORTS] =
|
static const char g_portchar[KL_GPIO_NPORTS] =
|
||||||
{
|
{
|
||||||
#if KL_GPIO_NPORTS > 9
|
#if KL_GPIO_NPORTS > 9
|
||||||
@@ -82,7 +90,6 @@ static const char g_portchar[KL_GPIO_NPORTS] =
|
|||||||
# error "Bad number of GPIOs"
|
# error "Bad number of GPIOs"
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_DEBUG_ERROR */
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
@@ -99,7 +106,6 @@ static const char g_portchar[KL_GPIO_NPORTS] =
|
|||||||
|
|
||||||
void kl_dumpgpio(gpio_cfgset_t pinset, const char *msg)
|
void kl_dumpgpio(gpio_cfgset_t pinset, const char *msg)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG_ERROR
|
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
uintptr_t base;
|
uintptr_t base;
|
||||||
int port;
|
int port;
|
||||||
@@ -124,7 +130,6 @@ void kl_dumpgpio(gpio_cfgset_t pinset, const char *msg)
|
|||||||
getreg32(base + KL_GPIO_PDDR_OFFSET));
|
getreg32(base + KL_GPIO_PDDR_OFFSET));
|
||||||
|
|
||||||
leave_critical_section(flags);
|
leave_critical_section(flags);
|
||||||
#endif /* CONFIG_DEBUG_ERROR */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_DEBUG_FEATURES */
|
#endif /* CONFIG_DEBUG_FEATURES */
|
||||||
|
|||||||
@@ -39,6 +39,15 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
/* 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 <spawn.h>
|
#include <spawn.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
@@ -47,10 +56,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FEATURES
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Public Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user