git: a96a9577127c - main - pir: Use device_set_descf()

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sun, 16 Jun 2024 20:38:05 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=a96a9577127c9bf804e7e47e38e7b4123a43efa1

commit a96a9577127c9bf804e7e47e38e7b4123a43efa1
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-06-05 19:29:30 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-06-16 20:37:26 +0000

    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);
 }