aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-06-05 19:29:30 +0000
committerMark Johnston <markj@FreeBSD.org>2024-06-16 20:37:26 +0000
commita96a9577127c9bf804e7e47e38e7b4123a43efa1 (patch)
treec5108ecf8f44beec259cc7e3f9a0f3318fe2c7de
parentc704b87ba679563cb8b344da69aa3cb7118a10b0 (diff)
pir: Use device_set_descf()
No functional change intended. MFC after: 1 week
-rw-r--r--sys/i386/pci/pci_pir.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c
index 6750e85deb40..ec56fcb2c54e 100644
--- a/sys/i386/pci/pci_pir.c
+++ b/sys/i386/pci/pci_pir.c
@@ -653,11 +653,8 @@ pci_pir_probe(int bus, int require_parse)
static int
pir_probe(device_t dev)
{
- char buf[64];
-
- snprintf(buf, sizeof(buf), "PCI Interrupt Routing Table: %d Entries",
+ device_set_descf(dev, "PCI Interrupt Routing Table: %d Entries",
pci_route_count);
- device_set_desc_copy(dev, buf);
return (0);
}