diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-10-21 15:42:26 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-11-16 07:26:03 -0500 |
commit | a4ba8cbeeb07f7bc8f9bcbd3f9962adb50376034 (patch) | |
tree | bcbbb8acdde2f2f2a73d813157e5da92286a9e68 /drivers | |
parent | 8d233633bab501567841aaa2935963fb908c9523 (diff) |
igbvf: Convert printks to pr_<level>
Based on the previous patch from Joe Perches <joe@perches.com>
Use current logging styles.
Prefix all output via #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Neaten link status dev_info.
-v2 Remove Copyright changes and fix-up patch to make it checkpatch.pl
compliant.
CC: Joe Perches <joe@perches.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/intel/igbvf/netdev.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c index cca78124be31..d076a8da50a4 100644 --- a/drivers/net/ethernet/intel/igbvf/netdev.c +++ b/drivers/net/ethernet/intel/igbvf/netdev.c | |||
@@ -25,6 +25,8 @@ | |||
25 | 25 | ||
26 | *******************************************************************************/ | 26 | *******************************************************************************/ |
27 | 27 | ||
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
29 | |||
28 | #include <linux/module.h> | 30 | #include <linux/module.h> |
29 | #include <linux/types.h> | 31 | #include <linux/types.h> |
30 | #include <linux/init.h> | 32 | #include <linux/init.h> |
@@ -1746,10 +1748,9 @@ void igbvf_update_stats(struct igbvf_adapter *adapter) | |||
1746 | 1748 | ||
1747 | static void igbvf_print_link_info(struct igbvf_adapter *adapter) | 1749 | static void igbvf_print_link_info(struct igbvf_adapter *adapter) |
1748 | { | 1750 | { |
1749 | dev_info(&adapter->pdev->dev, "Link is Up %d Mbps %s\n", | 1751 | dev_info(&adapter->pdev->dev, "Link is Up %d Mbps %s Duplex\n", |
1750 | adapter->link_speed, | 1752 | adapter->link_speed, |
1751 | ((adapter->link_duplex == FULL_DUPLEX) ? | 1753 | adapter->link_duplex == FULL_DUPLEX ? "Full" : "Half"); |
1752 | "Full Duplex" : "Half Duplex")); | ||
1753 | } | 1754 | } |
1754 | 1755 | ||
1755 | static bool igbvf_has_link(struct igbvf_adapter *adapter) | 1756 | static bool igbvf_has_link(struct igbvf_adapter *adapter) |
@@ -2842,9 +2843,8 @@ static struct pci_driver igbvf_driver = { | |||
2842 | static int __init igbvf_init_module(void) | 2843 | static int __init igbvf_init_module(void) |
2843 | { | 2844 | { |
2844 | int ret; | 2845 | int ret; |
2845 | printk(KERN_INFO "%s - version %s\n", | 2846 | pr_info("%s - version %s\n", igbvf_driver_string, igbvf_driver_version); |
2846 | igbvf_driver_string, igbvf_driver_version); | 2847 | pr_info("%s\n", igbvf_copyright); |
2847 | printk(KERN_INFO "%s\n", igbvf_copyright); | ||
2848 | 2848 | ||
2849 | ret = pci_register_driver(&igbvf_driver); | 2849 | ret = pci_register_driver(&igbvf_driver); |
2850 | 2850 | ||