diff options
author | Joe Perches <joe@perches.com> | 2010-02-17 10:01:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 20:45:20 -0500 |
commit | 7995c64e5b56ec7fe6032e5fc586f726cde2152b (patch) | |
tree | b072d2e42f717d8f2c3d94e9431c48a3e8304f72 /drivers/net/bnx2x_link.c | |
parent | 3a9c6a4915e584663aebdb9016bcb9d3897dd779 (diff) |
drivers/net/bnx2x: Use (pr|netdev|netif)_<level> macro helpers
Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Convert struct bnx2x member msglevel to msg_enable for netif_msg_<foo> macros
Remove #define PFX
Use pr_<level>
Use netdev_<level>
Use netif_<level>
Coalesce long formats
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_link.c')
-rw-r--r-- | drivers/net/bnx2x_link.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/drivers/net/bnx2x_link.c b/drivers/net/bnx2x_link.c index cf5778919b4b..32e79c359e89 100644 --- a/drivers/net/bnx2x_link.c +++ b/drivers/net/bnx2x_link.c | |||
@@ -14,6 +14,8 @@ | |||
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
18 | |||
17 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
18 | #include <linux/errno.h> | 20 | #include <linux/errno.h> |
19 | #include <linux/pci.h> | 21 | #include <linux/pci.h> |
@@ -2987,11 +2989,8 @@ static u8 bnx2x_verify_sfp_module(struct link_params *params) | |||
2987 | else | 2989 | else |
2988 | vendor_pn[SFP_EEPROM_PART_NO_SIZE] = '\0'; | 2990 | vendor_pn[SFP_EEPROM_PART_NO_SIZE] = '\0'; |
2989 | 2991 | ||
2990 | printk(KERN_INFO PFX "Warning: " | 2992 | netdev_info(bp->dev, "Warning: Unqualified SFP+ module detected, Port %d from %s part number %s\n", |
2991 | "Unqualified SFP+ module " | 2993 | params->port, vendor_name, vendor_pn); |
2992 | "detected on %s, Port %d from %s part number %s\n" | ||
2993 | , bp->dev->name, params->port, | ||
2994 | vendor_name, vendor_pn); | ||
2995 | return -EINVAL; | 2994 | return -EINVAL; |
2996 | } | 2995 | } |
2997 | 2996 | ||
@@ -4846,16 +4845,8 @@ static u8 bnx2x_ext_phy_is_link_up(struct link_params *params, | |||
4846 | " has been detected on " | 4845 | " has been detected on " |
4847 | "port %d\n", | 4846 | "port %d\n", |
4848 | params->port); | 4847 | params->port); |
4849 | printk(KERN_ERR PFX "Error: Power" | 4848 | netdev_err(bp->dev, "Error: Power fault on Port %d has been detected and the power to that SFP+ module has been removed to prevent failure of the card. Please remove the SFP+ module and restart the system to clear this error.\n", |
4850 | " fault on %s Port %d has" | 4849 | params->port); |
4851 | " been detected and the" | ||
4852 | " power to that SFP+ module" | ||
4853 | " has been removed to prevent" | ||
4854 | " failure of the card. Please" | ||
4855 | " remove the SFP+ module and" | ||
4856 | " restart the system to clear" | ||
4857 | " this error.\n" | ||
4858 | , bp->dev->name, params->port); | ||
4859 | /* | 4850 | /* |
4860 | * Disable all RX_ALARMs except for | 4851 | * Disable all RX_ALARMs except for |
4861 | * mod_abs | 4852 | * mod_abs |