mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
This commit is contained in:
@@ -44,9 +44,9 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_ARCH_STACKDUMP
|
||||
# undef CONFIG_DEBUG
|
||||
# undef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_INFO
|
||||
# define CONFIG_DEBUG 1
|
||||
# define CONFIG_DEBUG_FEATURES 1
|
||||
# define CONFIG_DEBUG_INFO 1
|
||||
#endif
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
||||
tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
/* Was the allocation successful? */
|
||||
|
||||
if (!tcb->stack_alloc_ptr)
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG)
|
||||
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG_FEATURES)
|
||||
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
||||
{
|
||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||
@@ -151,7 +151,7 @@ void _exit(int status)
|
||||
|
||||
slldbg("TCB=%p exiting\n", tcb);
|
||||
|
||||
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG)
|
||||
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG_FEATURES)
|
||||
lldbg("Other tasks:\n");
|
||||
sched_foreach(_up_dumponexit, NULL);
|
||||
#endif
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_ARCH_CALIBRATION) && defined(CONFIG_DEBUG)
|
||||
#if defined(CONFIG_ARCH_CALIBRATION) && defined(CONFIG_DEBUG_FEATURES)
|
||||
static void up_calibratedelay(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -41,9 +41,9 @@
|
||||
|
||||
/* Output debug info -- even if debug is not selected. */
|
||||
|
||||
#undef CONFIG_DEBUG
|
||||
#undef CONFIG_DEBUG_FEATURES
|
||||
#undef CONFIG_DEBUG_INFO
|
||||
#define CONFIG_DEBUG 1
|
||||
#define CONFIG_DEBUG_FEATURES 1
|
||||
#define CONFIG_DEBUG_INFO 1
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -244,7 +244,7 @@
|
||||
|
||||
/* EMAC statistics (debug only) */
|
||||
|
||||
#if defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_NET)
|
||||
#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_DEBUG_NET)
|
||||
struct ez80mac_statistics_s
|
||||
{
|
||||
uint32_t rx_int; /* Number of Rx interrupts received */
|
||||
@@ -321,7 +321,7 @@ struct ez80emac_driver_s
|
||||
WDOG_ID txpoll; /* TX poll timer */
|
||||
WDOG_ID txtimeout; /* TX timeout timer */
|
||||
|
||||
#if defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_NET)
|
||||
#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_DEBUG_NET)
|
||||
struct ez80mac_statistics_s stat;
|
||||
#endif
|
||||
|
||||
@@ -574,7 +574,7 @@ static int ez80emac_miiconfigure(FAR struct ez80emac_driver_s *priv)
|
||||
|
||||
/* Verify that the detect PHY is an AMD Am87c874 as expected */
|
||||
|
||||
#ifdef CONFIG_DEBUG /* Parameter checking only done when DEBUG is enabled */
|
||||
#ifdef CONFIG_DEBUG_FEATURES /* Parameter checking only done when DEBUG is enabled */
|
||||
phyval = ez80emac_miiread(priv, MII_PHYID1);
|
||||
if (phyval != MII_PHYID1_AM79C874)
|
||||
{
|
||||
|
||||
@@ -399,7 +399,7 @@ static int ez80_i2c_sendaddr(struct ez80_i2cdev_s *priv, uint8_t readbit)
|
||||
*/
|
||||
|
||||
sr = ez80_i2c_waitiflg();
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (sr != I2C_SR_MSTART)
|
||||
{
|
||||
/* This error should never occur */
|
||||
@@ -469,7 +469,7 @@ static int ez80_i2c_sendaddr(struct ez80_i2cdev_s *priv, uint8_t readbit)
|
||||
/* We don't attempt any fancy status-based error recovery */
|
||||
|
||||
failure:
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
switch (sr)
|
||||
{
|
||||
case I2C_SR_ARBLOST1: /* Arbitration lost in address or data byte */
|
||||
|
||||
@@ -41,9 +41,9 @@
|
||||
|
||||
/* Output debug info -- even if debug is not selected. */
|
||||
|
||||
#undef CONFIG_DEBUG
|
||||
#undef CONFIG_DEBUG_FEATURES
|
||||
#undef CONFIG_DEBUG_INFO
|
||||
#define CONFIG_DEBUG 1
|
||||
#define CONFIG_DEBUG_FEATURES 1
|
||||
#define CONFIG_DEBUG_INFO 1
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
@@ -446,7 +446,7 @@ FAR struct spi_dev_s *ez80_spibus_initialize(int port)
|
||||
|
||||
/* Only the SPI1 interface is supported */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (port != 1)
|
||||
{
|
||||
return NULL;
|
||||
|
||||
@@ -41,9 +41,9 @@
|
||||
|
||||
/* Output debug info -- even if debug is not selected. */
|
||||
|
||||
#undef CONFIG_DEBUG
|
||||
#undef CONFIG_DEBUG_FEATURES
|
||||
#undef CONFIG_DEBUG_INFO
|
||||
#define CONFIG_DEBUG 1
|
||||
#define CONFIG_DEBUG_FEATURES 1
|
||||
#define CONFIG_DEBUG_INFO 1
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
@@ -41,9 +41,9 @@
|
||||
|
||||
/* Output debug info -- even if debug is not selected. */
|
||||
|
||||
#undef CONFIG_DEBUG
|
||||
#undef CONFIG_DEBUG_FEATURES
|
||||
#undef CONFIG_DEBUG_INFO
|
||||
#define CONFIG_DEBUG 1
|
||||
#define CONFIG_DEBUG_FEATURES 1
|
||||
#define CONFIG_DEBUG_INFO 1
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -41,9 +41,9 @@
|
||||
|
||||
/* Output debug info -- even if debug is not selected. */
|
||||
|
||||
#undef CONFIG_DEBUG
|
||||
#undef CONFIG_DEBUG_FEATURES
|
||||
#undef CONFIG_DEBUG_INFO
|
||||
#define CONFIG_DEBUG 1
|
||||
#define CONFIG_DEBUG_FEATURES 1
|
||||
#define CONFIG_DEBUG_INFO 1
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
Reference in New Issue
Block a user