From d58517b1ba80c3121b7f0c1689069e6f7c2d6c63 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 15 Nov 2010 02:25:06 +0000 Subject: Fix compile errors with debug on git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3111 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c') diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c index 5e3ba537e..dd37c560f 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c @@ -1970,8 +1970,8 @@ static inline int lpc17_phyinit(struct lpc17_driver_s *priv) #endif ndbg("%dBase-T %s duplex\n", - priv->lp_mode & LPC17_SPEED_MASK == LPC17_SPEED_100 ? 100 : 10, - priv->lp_mode & LPC17_DUPLEX_MASK == LPC17_DUPLEX_FULL ?"full" : "half"); + (priv->lp_mode & LPC17_SPEED_MASK) == LPC17_SPEED_100 ? 100 : 10, + (priv->lp_mode & LPC17_DUPLEX_MASK) == LPC17_DUPLEX_FULL ?"full" : "half"); /* Disable auto-configuration. Set the fixed speed/duplex mode. * (probably more than little redundant). @@ -2281,7 +2281,7 @@ static inline int lpc17_ethinitialize(int intf) int ret; int i; - DEBUGASSERT(inf < LPC17_NETHCONTROLLERS); + DEBUGASSERT(intf < LPC17_NETHCONTROLLERS); priv = &g_ethdrvr[intf]; /* Turn on the ethernet MAC clock */ -- cgit v1.2.3