From 65b67a0059a724bb3e624c15992ec60177bd386c Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 20 Nov 2010 18:32:37 +0000 Subject: Fixed debug logic git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3120 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nuttx') diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c index 6742b33a2..324d7a168 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c @@ -458,7 +458,7 @@ static int lpc17_rmmac(struct uip_driver_s *dev, const uint8_t *mac); /* Initialization functions */ -#ifdef CONFIG_NET_REGDEBUG +#if defined(CONFIG_NET_REGDEBUG) && defined(CONFIG_DEBUG_GPIO) static void lpc17_showpins(void); #else # define lpc17_showpins() @@ -955,7 +955,7 @@ static void lpc17_rxdone(struct lpc17_driver_s *priv) priv->lp_dev.d_len = pktlen; lpc17_dumppacket("Received packet", - priv->ld_dev.d_buf, priv->ld_dev.d_len); + priv->lp_dev.d_buf, priv->lp_dev.d_len); /* We only accept IP packets of the configured type and ARP packets */ @@ -1659,7 +1659,7 @@ static int lpc17_rmmac(struct uip_driver_s *dev, const uint8_t *mac) * *******************************************************************************/ -#ifdef CONFIG_NET_REGDEBUG +#if defined(CONFIG_NET_REGDEBUG) && defined(CONFIG_DEBUG_GPIO) static void lpc17_showpins(void) { lpc17_dumpgpio(GPIO_PORT0|GPIO_PIN0, "P0[1-15]"); -- cgit v1.2.3