diff options
author | Joe Perches <joe@perches.com> | 2011-08-14 12:16:21 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-17 15:47:23 -0700 |
commit | f1deab502206ab7e4470334b7738383c76e4ddd9 (patch) | |
tree | 0284270dc050f2ffd60646d25e815d16357dbe37 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c | |
parent | 94f05b0f60de32e6efa19310bd142f1519e2abdb (diff) | |
download | op-kernel-dev-f1deab502206ab7e4470334b7738383c76e4ddd9.zip op-kernel-dev-f1deab502206ab7e4470334b7738383c76e4ddd9.tar.gz |
bnx2x: Use pr_fmt and message logging cleanups
Add pr_fmt(fmt) KBUILD_MODNAME ": " to prefix messages with "bnx2x: ".
Remove #define DP_LEVEL and use pr_notice.
Repeating KERN_<LEVEL> isn't necessary in multi-line printks.
printk macro neatening, use fmt and ##__VA_ARGS__.
Coalesce long formats.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c index 1f88c19..0440425 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c @@ -16,6 +16,9 @@ * Written by: Vladislav Zolotarov * */ + +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/module.h> #include <linux/crc32.h> #include <linux/netdevice.h> |