From patchwork Thu Nov 13 16:20:10 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 8591 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 9B1BCDDDDB for ; Fri, 14 Nov 2008 03:20:56 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752316AbYKMQUv (ORCPT ); Thu, 13 Nov 2008 11:20:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752181AbYKMQUu (ORCPT ); Thu, 13 Nov 2008 11:20:50 -0500 Received: from g1t0029.austin.hp.com ([15.216.28.36]:27976 "EHLO g1t0029.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752055AbYKMQUt (ORCPT ); Thu, 13 Nov 2008 11:20:49 -0500 Received: from g5t0029.atlanta.hp.com (g5t0029.atlanta.hp.com [16.228.8.141]) by g1t0029.austin.hp.com (Postfix) with ESMTP id 104BA3842B; Thu, 13 Nov 2008 16:20:49 +0000 (UTC) Received: from ldl.fc.hp.com (ldl.fc.hp.com [15.11.146.30]) by g5t0029.atlanta.hp.com (Postfix) with ESMTP id C18B710075; Thu, 13 Nov 2008 16:20:13 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl.fc.hp.com (Postfix) with ESMTP id 6A2E239C06C; Thu, 13 Nov 2008 09:20:13 -0700 (MST) X-Virus-Scanned: Debian amavisd-new at ldl.fc.hp.com Received: from ldl.fc.hp.com ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HoXts6SqAJzV; Thu, 13 Nov 2008 09:20:12 -0700 (MST) Received: from tigger.helgaas (lart.fc.hp.com [15.11.146.31]) by ldl.fc.hp.com (Postfix) with ESMTP id BAF7939C007; Thu, 13 Nov 2008 09:20:12 -0700 (MST) From: Bjorn Helgaas To: Jeff Kirsher , Jesse Brandeburg , Bruce Allan , PJ Waskiewicz , John Ronciak Subject: [patch] igb: use dev_printk instead of printk Date: Thu, 13 Nov 2008 10:20:10 -0600 User-Agent: KMail/1.9.10 Cc: e1000-devel@lists.sourceforge.net, netdev@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200811130920.11930.bjorn.helgaas@hp.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use dev_printk() instead of printk() to give a little more context and use consistent format. Signed-off-by: Bjorn Helgaas --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 1f397cd..2799518 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c @@ -1019,10 +1019,9 @@ static int __devinit igb_probe(struct pci_dev *pdev, state &= ~PCIE_LINK_STATE_L0S; pci_write_config_word(us_dev, pos + PCI_EXP_LNKCTL, state); - printk(KERN_INFO "Disabling ASPM L0s upstream switch " - "port %x:%x.%x\n", us_dev->bus->number, - PCI_SLOT(us_dev->devfn), - PCI_FUNC(us_dev->devfn)); + dev_info(&pdev->dev, + "Disabling ASPM L0s upstream switch port %s\n", + pci_name(us_dev)); } default: break;