From 039133af94a5793430ef4c153885210c3e8f4302 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 20 Nov 2010 18:32:37 +0000 Subject: [PATCH] Fixed debug logic git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3120 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/lpc17xx/lpc17_ethernet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/lpc17xx/lpc17_ethernet.c b/arch/arm/src/lpc17xx/lpc17_ethernet.c index 6742b33a28..324d7a168a 100644 --- a/arch/arm/src/lpc17xx/lpc17_ethernet.c +++ b/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]");