1
0
Fork 0
forked from nuttx/nuttx-update

drivers/net/enc28j60.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-12-02 06:30:14 +09:00 committed by Xiang Xiao
parent 3086ceb28a
commit fc05f89c78

View file

@ -2081,8 +2081,10 @@ static int enc_ifup(struct net_driver_s *dev)
int ret;
ninfo("Bringing up: %d.%d.%d.%d\n",
dev->d_ipaddr & 0xff, (dev->d_ipaddr >> 8) & 0xff,
(dev->d_ipaddr >> 16) & 0xff, dev->d_ipaddr >> 24);
(int)(dev->d_ipaddr & 0xff),
(int)((dev->d_ipaddr >> 8) & 0xff),
(int)((dev->d_ipaddr >> 16) & 0xff),
(int)(dev->d_ipaddr >> 24));
/* Lock the SPI bus so that we have exclusive access */
@ -2153,8 +2155,10 @@ static int enc_ifdown(struct net_driver_s *dev)
int ret;
ninfo("Taking down: %d.%d.%d.%d\n",
dev->d_ipaddr & 0xff, (dev->d_ipaddr >> 8) & 0xff,
(dev->d_ipaddr >> 16) & 0xff, dev->d_ipaddr >> 24);
(int)(dev->d_ipaddr & 0xff),
(int)((dev->d_ipaddr >> 8) & 0xff),
(int)((dev->d_ipaddr >> 16) & 0xff),
(int)(dev->d_ipaddr >> 24));
/* Lock the SPI bus so that we have exclusive access */