From a96a9577127c9bf804e7e47e38e7b4123a43efa1 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Wed, 5 Jun 2024 15:29:30 -0400 Subject: [PATCH] pir: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/i386/pci/pci_pir.c | 5 +---- 1 file changed, 1 insertion(+), 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); }