Skip to contentSkip to conversation

igb: use dev_printk instead of printk

PATCH In review Jeff Kirsher 2 participants 2 messages Nov 18, 2008 – Nov 20, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igb: use dev_printk instead of printk

From: Bjorn Helgaas <[email protected]>

Use dev_printk() instead of printk() to give a little more context and use consistent format.

---

 drivers/net/igb/igb_main.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
drivers/net/igb/igb_main.c +3 -4
index b1530be..b52626a 100644
@@ -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;