diff options
author | Joe Perches <joe@perches.com> | 2012-06-09 03:49:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-11 19:58:24 -0400 |
commit | 8d242488ce4627dd7e6333caab56df11ea25e239 (patch) | |
tree | 61d464de218ba9cb22d15735a54b49d230068c16 /drivers/net/phy/phy_device.c | |
parent | de74e92aa8a44d0b80a53601dc4f6dd6afcb8453 (diff) |
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/phy_device.c')
-rw-r--r-- | drivers/net/phy/phy_device.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index de86a5582224..18ab0daf4490 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c | |||
@@ -14,6 +14,9 @@ | |||
14 | * option) any later version. | 14 | * option) any later version. |
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | |||
18 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
19 | |||
17 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
18 | #include <linux/string.h> | 21 | #include <linux/string.h> |
19 | #include <linux/errno.h> | 22 | #include <linux/errno.h> |
@@ -975,8 +978,8 @@ int phy_driver_register(struct phy_driver *new_driver) | |||
975 | retval = driver_register(&new_driver->driver); | 978 | retval = driver_register(&new_driver->driver); |
976 | 979 | ||
977 | if (retval) { | 980 | if (retval) { |
978 | printk(KERN_ERR "%s: Error %d in registering driver\n", | 981 | pr_err("%s: Error %d in registering driver\n", |
979 | new_driver->name, retval); | 982 | new_driver->name, retval); |
980 | 983 | ||
981 | return retval; | 984 | return retval; |
982 | } | 985 | } |