]> git.baikalelectronics.ru Git - kernel.git/commit
e1000: Use netdev_<level>, pr_<level> and dev_<level>
authorEmil Tantilov <emil.s.tantilov@intel.com>
Tue, 27 Apr 2010 14:02:58 +0000 (14:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Apr 2010 00:05:03 +0000 (17:05 -0700)
commit36199402cd05b080d6232bd007e7ebe4aa7f8772
tree54acb7e8aa4db5e93b960d565b1cc2dce45988b9
parent96e491f7cbcc84d6a5afaf6bb57420e53f417452
e1000: Use netdev_<level>, pr_<level> and dev_<level>

This patch is an alternative to similar patch provided by Joe Perches.

Substitute DPRINTK macro for e_<level> that uses netdev_<level> and dev_<level>
similar to e1000e.
- Convert printk to pr_<level> where applicable.
- Use common #define pr_fmt for the driver.
- Use dev_<level> for displaying text in parts of the driver where the interface
  name is not assigned (like e1000_param.c).
- Better align test with the new macros.

CC: Joe Perches <joe@perches.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000/e1000.h
drivers/net/e1000/e1000_ethtool.c
drivers/net/e1000/e1000_hw.c
drivers/net/e1000/e1000_hw.h
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_osdep.h
drivers/net/e1000/e1000_param.c