net: sh-eth: Use pr_err instead of printk
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Wed, 20 Mar 2013 22:46:55 +0000 (22:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Mar 2013 15:56:38 +0000 (11:56 -0400)
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c

index 56884c4cd90bbbd780e0d414de0b249d3983c4ae..f632085e69b48301d26a863fd46c142e666eed44 100644 (file)
@@ -592,7 +592,7 @@ static int sh_eth_check_reset(struct net_device *ndev)
                cnt--;
        }
        if (cnt < 0) {
-               printk(KERN_ERR "Device reset fail\n");
+               pr_err("Device reset fail\n");
                ret = -ETIMEDOUT;
        }
        return ret;
@@ -2321,7 +2321,7 @@ static const u16 *sh_eth_get_register_offset(int register_type)
                reg_offset = sh_eth_offset_fast_sh3_sh2;
                break;
        default:
-               printk(KERN_ERR "Unknown register type (%d)\n", register_type);
+               pr_err("Unknown register type (%d)\n", register_type);
                break;
        }