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:
+9
-7
@@ -95,12 +95,12 @@ config NETDEV_LATEINIT
|
||||
|
||||
config NET_DUMPPACKET
|
||||
bool "Enable packet dumping"
|
||||
depends on DEBUG
|
||||
depends on DEBUG_FEATURES
|
||||
default n
|
||||
---help---
|
||||
Some Ethernet MAC drivers supporting dumping of received and
|
||||
transmitted packets as a debug option. This setting enables that
|
||||
debug option. Also needs DEBUG.
|
||||
debug option. Also needs CONFIG_DEBUG_FEATURES.
|
||||
|
||||
comment "External Ethernet MAC Device Support"
|
||||
|
||||
@@ -234,9 +234,10 @@ config ENC28J60_DUMPPACKET
|
||||
config ENC28J60_REGDEBUG
|
||||
bool "Register-Level Debug"
|
||||
default n
|
||||
depends on DEBUG && DEBUG_NET
|
||||
depends on DEBUG_FEATURES && DEBUG_NET
|
||||
---help---
|
||||
Enable very low-level register access debug. Depends on DEBUG and DEBUG_NET.
|
||||
Enable very low-level register access debug. Depends on
|
||||
CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_NET.
|
||||
|
||||
endif # ENC28J60
|
||||
|
||||
@@ -296,9 +297,10 @@ config ENCX24J600_DUMPPACKET
|
||||
config ENCX24J600_REGDEBUG
|
||||
bool "Register-Level Debug"
|
||||
default n
|
||||
depends on DEBUG && DEBUG_NET
|
||||
depends on DEBUG_FEATURES && DEBUG_NET
|
||||
---help---
|
||||
Enable very low-level register access debug. Depends on DEBUG and DEBUG_NET.
|
||||
Enable very low-level register access debug. Depends on
|
||||
CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_NET.
|
||||
|
||||
endif # ENCX24J600
|
||||
|
||||
@@ -495,7 +497,7 @@ endchoice
|
||||
config NETDEV_PHY_DEBUG
|
||||
bool "PHY debug"
|
||||
default n
|
||||
depends on DEBUG
|
||||
depends on DEBUG_FEATURES
|
||||
---help---
|
||||
Normally debug output is controlled by DEBUG_NET. However, that
|
||||
may generate a LOT of debug output, especially if CONFIG_DEBUG_INFO is
|
||||
|
||||
@@ -679,7 +679,7 @@ static int cs89x0_interrupt(int irq, FAR void *context)
|
||||
register struct cs89x0_driver_s *cs89x0 = s89x0_mapirq(irq);
|
||||
uint16_t isq;
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (!cs89x0)
|
||||
{
|
||||
return -ENODEV;
|
||||
@@ -1010,7 +1010,7 @@ int cs89x0_initialize(FAR const cs89x0_driver_s *cs89x0, int devno)
|
||||
{
|
||||
/* Sanity checks -- only performed with debug enabled */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (!cs89x0 || (unsigned)devno > CONFIG_CS89x0_NINTERFACES || g_cs89x00[devno])
|
||||
{
|
||||
return -EINVAL;
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
|
||||
/* Low-level register debug */
|
||||
|
||||
#if !defined(CONFIG_DEBUG) || !defined(CONFIG_DEBUG_NET)
|
||||
#if !defined(CONFIG_DEBUG_FEATURES) || !defined(CONFIG_DEBUG_NET)
|
||||
# undef CONFIG_ENC28J60_REGDEBUG
|
||||
#endif
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
|
||||
/* Low-level register debug */
|
||||
|
||||
#if !defined(CONFIG_DEBUG) || !defined(CONFIG_DEBUG_NET)
|
||||
#if !defined(CONFIG_DEBUG_FEATURES) || !defined(CONFIG_DEBUG_NET)
|
||||
# undef CONFIG_ENCX24J600_REGDEBUG
|
||||
#endif
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ static inline void telnet_dumpbuffer(FAR const char *msg,
|
||||
FAR const char *buffer,
|
||||
unsigned int nbytes)
|
||||
{
|
||||
/* CONFIG_DEBUG, CONFIG_DEBUG_INFO, and CONFIG_DEBUG_NET have to be
|
||||
/* CONFIG_DEBUG_FEATURES, CONFIG_DEBUG_INFO, and CONFIG_DEBUG_NET have to be
|
||||
* defined or the following does nothing.
|
||||
*/
|
||||
|
||||
|
||||
+4
-4
@@ -186,7 +186,7 @@ static int vnet_transmit(FAR struct vnet_driver_s *vnet)
|
||||
* we reset the TX buffer directly.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
cprintf("VNET: TX buffer is full\n");
|
||||
#endif
|
||||
return ERROR;
|
||||
@@ -308,7 +308,7 @@ void rtos_vnet_recv(struct rgmp_vnet *rgmp_vnet, char *data, int len)
|
||||
|
||||
if (len > CONFIG_NET_ETH_MTU || len < 14)
|
||||
{
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
cprintf("VNET: receive invalid packet of size %d\n", len);
|
||||
#endif
|
||||
return;
|
||||
@@ -506,7 +506,7 @@ static void vnet_polltimer(int argc, uint32_t arg, ...)
|
||||
|
||||
if (vnet_is_txbuff_full(vnet->vnet))
|
||||
{
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
cprintf("VNET: TX buffer is full\n");
|
||||
#endif
|
||||
return;
|
||||
@@ -640,7 +640,7 @@ static int vnet_txavail(struct net_driver_s *dev)
|
||||
|
||||
if (vnet_is_txbuff_full(vnet->vnet))
|
||||
{
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
cprintf("VNET: TX buffer is full\n");
|
||||
#endif
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user