ixgbevf: Convert printks to pr_<level>
Based on the original patch from Joe Perches <joe@perches.com> Use the current logging styles, prefix output with "ixgbevf: " Add #define pr_fmt Coalesce formats. -v2 Fix-up to make checkpatch.pl compliant and remove change to copyright line CC: Joe Perches <joe@perches.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Tested-by: Sibai Li <sibai.li@intel.com>
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
|
||||
/* ethtool support for ixgbevf */
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
@@ -549,8 +551,8 @@ static const u32 register_test_patterns[] = {
|
||||
writel((W & M), (adapter->hw.hw_addr + R)); \
|
||||
val = readl(adapter->hw.hw_addr + R); \
|
||||
if ((W & M) != (val & M)) { \
|
||||
printk(KERN_ERR "set/check reg %04X test failed: got 0x%08X " \
|
||||
"expected 0x%08X\n", R, (val & M), (W & M)); \
|
||||
pr_err("set/check reg %04X test failed: got 0x%08X expected " \
|
||||
"0x%08X\n", R, (val & M), (W & M)); \
|
||||
*data = R; \
|
||||
writel(before, (adapter->hw.hw_addr + R)); \
|
||||
return 1; \
|
||||
|
Reference in New Issue
Block a user