e1000e: Use pr_<level> and netdev_<level>
As an alternative to a quite large patch previously submitted by Joe Perches to make use of kernel logging API, this patch is much less intrusive. Convert e_<level> to netdev_<level> Use #define pr_fmt Convert a few printks to pr_<level> Cc: Joe Perches <joe@perches.com> Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
66aa4a55fe
commit
8544b9f737
@@ -26,6 +26,8 @@
|
||||
|
||||
*******************************************************************************/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/init.h>
|
||||
@@ -5509,10 +5511,9 @@ static struct pci_driver e1000_driver = {
|
||||
static int __init e1000_init_module(void)
|
||||
{
|
||||
int ret;
|
||||
printk(KERN_INFO "%s: Intel(R) PRO/1000 Network Driver - %s\n",
|
||||
e1000e_driver_name, e1000e_driver_version);
|
||||
printk(KERN_INFO "%s: Copyright (c) 1999 - 2009 Intel Corporation.\n",
|
||||
e1000e_driver_name);
|
||||
pr_info("Intel(R) PRO/1000 Network Driver - %s\n",
|
||||
e1000e_driver_version);
|
||||
pr_info("Copyright (c) 1999 - 2009 Intel Corporation.\n");
|
||||
ret = pci_register_driver(&e1000_driver);
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user