diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-11-13 06:20:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-16 01:42:36 -0800 |
commit | ac450208dea8cf1b9aa8feabd06a7209a282d749 (patch) | |
tree | 8074de6d6f0b5e3df39b2cde3bbb2ea61cfd7be8 /drivers | |
parent | 0f807044980dd51fdf9aa2df8d503d4757501b20 (diff) | |
download | op-kernel-dev-ac450208dea8cf1b9aa8feabd06a7209a282d749.zip op-kernel-dev-ac450208dea8cf1b9aa8feabd06a7209a282d749.tar.gz |
igb: use dev_printk instead of printk
Use dev_printk() instead of printk() to give a little more context
and use consistent format.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/igb/igb_main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 0a98015..1cbae85 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; |