提交 eda959f3 编写于 作者: M Marek Vasut 提交者: Wolfgang Denk

GCC4.6: Squash warnings in fec_mxc.c

fec_mxc.c: In function 'fec_mii_setspeed':
fec_mxc.c:112:2: warning: format '%#lx' expects type 'long unsigned int', but
argument 2 has type 'u32'
fec_mxc.c: In function 'fec_recv':
fec_mxc.c:632:2: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'long unsigned int'
Signed-off-by: NMarek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
上级 458f4381
...@@ -109,7 +109,7 @@ static void fec_mii_setspeed(struct fec_priv *fec) ...@@ -109,7 +109,7 @@ static void fec_mii_setspeed(struct fec_priv *fec)
*/ */
writel((((imx_get_fecclk() / 1000000) + 2) / 5) << 1, writel((((imx_get_fecclk() / 1000000) + 2) / 5) << 1,
&fec->eth->mii_speed); &fec->eth->mii_speed);
debug("fec_init: mii_speed %#lx\n", debug("fec_init: mii_speed %08x\n",
readl(&fec->eth->mii_speed)); readl(&fec->eth->mii_speed));
} }
static int fec_miiphy_write(const char *dev, uint8_t phyAddr, uint8_t regAddr, static int fec_miiphy_write(const char *dev, uint8_t phyAddr, uint8_t regAddr,
...@@ -629,7 +629,7 @@ static int fec_recv(struct eth_device *dev) ...@@ -629,7 +629,7 @@ static int fec_recv(struct eth_device *dev)
*/ */
ievent = readl(&fec->eth->ievent); ievent = readl(&fec->eth->ievent);
writel(ievent, &fec->eth->ievent); writel(ievent, &fec->eth->ievent);
debug("fec_recv: ievent 0x%x\n", ievent); debug("fec_recv: ievent 0x%lx\n", ievent);
if (ievent & FEC_IEVENT_BABR) { if (ievent & FEC_IEVENT_BABR) {
fec_halt(dev); fec_halt(dev);
fec_init(dev, fec->bd); fec_init(dev, fec->bd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册