From: Joe Perches Date: Fri, 21 Oct 2011 20:04:09 +0000 (+0000) Subject: igb: Convert bare printk to pr_notice X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~247 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d8f38974e5b1b6f89068e94440e3167870acb035;p=users%2Fjedix%2Flinux-maple.git igb: Convert bare printk to pr_notice printks should use KERN_ levels. (cherry picked from commit 82bbcdebbac75bf7636bf63ac0e6e4a49b128978) Signed-off-by: Joe Perches Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Joe Jin --- diff --git a/drivers/net/igb/e1000_82575.c b/drivers/net/igb/e1000_82575.c index 7881fb95a25ba..b8e20f037d0a8 100644 --- a/drivers/net/igb/e1000_82575.c +++ b/drivers/net/igb/e1000_82575.c @@ -29,6 +29,8 @@ * e1000_82576 */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include @@ -244,8 +246,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;