Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2024 20:38:05 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a96a9577127c - main - pir: Use device_set_descf()
Message-ID:  <202406162038.45GKc59W079803@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406162038.45GKc59W079803>