Fix compile errors with debug on

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3111 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-11-15 02:25:06 +00:00
parent ddd4d0fcc5
commit fdb0f3b35d
3 changed files with 5 additions and 5 deletions

View File

@ -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 */

View File

@ -204,7 +204,7 @@ CONFIG_PHY_KS8721=y
CONFIG_PHY_AUTONEG=y
CONFIG_PHY_SPEED100=n
CONFIG_PHY_FDUPLEX=y
CONFIG_NET_REGDEBUG=n
#
# General build options
#

View File

@ -137,7 +137,7 @@ FAR struct file_struct *lib_fdopen(int fd, FAR const char *mode,
FAR struct filelist *flist,
FAR struct streamlist *slist)
{
FAR struct inode *inode = flist;
FAR struct inode *inode;
FAR FILE *stream;
int oflags = lib_mode2oflags(mode);
int err = OK;