Skip to content

Commit d768cb6

Browse files
Bjorn Helgaasjbarnes993
authored andcommitted
x86/PCI: follow lspci device/vendor style
Use "[%04x:%04x]" for PCI vendor/device IDs to follow the format used by lspci(8). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
1 parent 16dbef4 commit d768cb6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/x86/pci/irq.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,15 +493,15 @@ static int pirq_amd756_get(struct pci_dev *router, struct pci_dev *dev, int pirq
493493
if (pirq <= 4)
494494
irq = read_config_nybble(router, 0x56, pirq - 1);
495495
dev_info(&dev->dev,
496-
"AMD756: dev [%04x/%04x], router PIRQ %d get IRQ %d\n",
496+
"AMD756: dev [%04x:%04x], router PIRQ %d get IRQ %d\n",
497497
dev->vendor, dev->device, pirq, irq);
498498
return irq;
499499
}
500500

501501
static int pirq_amd756_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq)
502502
{
503503
dev_info(&dev->dev,
504-
"AMD756: dev [%04x/%04x], router PIRQ %d set IRQ %d\n",
504+
"AMD756: dev [%04x:%04x], router PIRQ %d set IRQ %d\n",
505505
dev->vendor, dev->device, pirq, irq);
506506
if (pirq <= 4)
507507
write_config_nybble(router, 0x56, pirq - 1, irq);
@@ -823,7 +823,7 @@ static void __init pirq_find_router(struct irq_router *r)
823823
r->get = NULL;
824824
r->set = NULL;
825825

826-
DBG(KERN_DEBUG "PCI: Attempting to find IRQ router for %04x:%04x\n",
826+
DBG(KERN_DEBUG "PCI: Attempting to find IRQ router for [%04x:%04x]\n",
827827
rt->rtr_vendor, rt->rtr_device);
828828

829829
pirq_router_dev = pci_get_bus_and_slot(rt->rtr_bus, rt->rtr_devfn);
@@ -843,7 +843,7 @@ static void __init pirq_find_router(struct irq_router *r)
843843
h->probe(r, pirq_router_dev, pirq_router_dev->device))
844844
break;
845845
}
846-
dev_info(&pirq_router_dev->dev, "%s IRQ router [%04x/%04x]\n",
846+
dev_info(&pirq_router_dev->dev, "%s IRQ router [%04x:%04x]\n",
847847
pirq_router.name,
848848
pirq_router_dev->vendor, pirq_router_dev->device);
849849

0 commit comments

Comments
 (0)