net/fsl: Add format length modifier to avoid negative values
authorShruti Kanetkar <Shruti@Freescale.com>
Tue, 29 Jul 2014 19:53:03 +0000 (14:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jul 2014 02:58:09 +0000 (19:58 -0700)
Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/xgmac_mdio.c

index 8173407..6e7db66 100644 (file)
@@ -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;
        }