summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/xgmac_mdio.c
diff options
context:
space:
mode:
authorShruti Kanetkar <Shruti@Freescale.com>2014-07-29 23:53:03 +0400
committerDavid S. Miller <davem@davemloft.net>2014-07-31 06:58:09 +0400
commit9e6492ec99c24b88a7c57623e5664d389261bf4e (patch)
tree83d25953ef20491a2ebfac32a7a7ab1e5dc9481c /drivers/net/ethernet/freescale/xgmac_mdio.c
parentc1543d37ff22800c06c1ac1c1587bb3891474506 (diff)
downloadlinux-9e6492ec99c24b88a7c57623e5664d389261bf4e.tar.xz
net/fsl: Add format length modifier to avoid negative values
Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/xgmac_mdio.c')
-rw-r--r--drivers/net/ethernet/freescale/xgmac_mdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c
index 81734075e0aa..6e7db66069aa 100644
--- a/drivers/net/ethernet/freescale/xgmac_mdio.c
+++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
@@ -163,7 +163,7 @@ static int xgmac_mdio_read(struct mii_bus *bus, int phy_id, int regnum)
/* Return all Fs if nothing was there */
if (in_be32(&regs->mdio_stat) & MDIO_STAT_RD_ER) {
dev_err(&bus->dev,
- "Error while reading PHY%d reg at %d.%d\n",
+ "Error while reading PHY%d reg at %d.%hhu\n",
phy_id, dev_addr, regnum);
return 0xffff;
}