Patchwork [net-next,5/5] igb: Convert bare printk to pr_notice

login
register
mail settings
Submitter Joe Perches
Date Oct. 12, 2011, 4:18 p.m.
Message ID <1b72526330e273e78649e92f606b7779c3db7533.1318436085.git.joe@perches.com>
Download mbox | patch
Permalink /patch/119247/
State Awaiting Upstream
Delegated to: David Miller
Headers show

Comments

Joe Perches - Oct. 12, 2011, 4:18 p.m.
printks should use KERN_ levels.

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/net/ethernet/intel/igb/e1000_82575.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c
index c0857bd..e0acfff 100644
--- a/drivers/net/ethernet/intel/igb/e1000_82575.c
+++ b/drivers/net/ethernet/intel/igb/e1000_82575.c
@@ -29,6 +29,8 @@ 
  * e1000_82576
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/types.h>
 #include <linux/if_ether.h>
 
@@ -248,8 +250,7 @@  static s32 igb_get_invariants_82575(struct e1000_hw *hw)
 	 * Check for invalid size
 	 */
 	if ((hw->mac.type == e1000_82576) && (size > 15)) {
-		printk("igb: The NVM size is not valid, "
-			"defaulting to 32K.\n");
+		pr_notice("The NVM size is not valid, defaulting to 32K\n");
 		size = 15;
 	}
 	nvm->word_size = 1 << size;