diff options
author | Joe Perches <joe@perches.com> | 2012-06-09 07:49:07 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-11 16:58:24 -0700 |
commit | 8d242488ce4627dd7e6333caab56df11ea25e239 (patch) | |
tree | 61d464de218ba9cb22d15735a54b49d230068c16 /drivers/net/phy/mdio_bus.c | |
parent | de74e92aa8a44d0b80a53601dc4f6dd6afcb8453 (diff) | |
download | linux-8d242488ce4627dd7e6333caab56df11ea25e239.tar.gz linux-8d242488ce4627dd7e6333caab56df11ea25e239.tar.bz2 linux-8d242488ce4627dd7e6333caab56df11ea25e239.zip |
phy: Use pr_<level>
Use a more current logging style.
Add pr_fmt and missing newlines.
Remove embedded prefixes.
Neaten phy_print_status to avoid using KERN_CONT.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mdio_bus.c')
-rw-r--r-- | drivers/net/phy/mdio_bus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index 683ef1ce5519..d4a4992b4935 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c @@ -13,6 +13,9 @@ * option) any later version. * */ + +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/kernel.h> #include <linux/string.h> #include <linux/errno.h> @@ -148,7 +151,7 @@ int mdiobus_register(struct mii_bus *bus) err = device_register(&bus->dev); if (err) { - printk(KERN_ERR "mii_bus %s failed to register\n", bus->id); + pr_err("mii_bus %s failed to register\n", bus->id); return -EINVAL; } |