git: c64abeae220e - stable/14 - pir: Use device_set_descf()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Jun 2024 15:31:13 UTC
The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=c64abeae220e3d6bf17f9c6a066cb75b4cf17ec6 commit c64abeae220e3d6bf17f9c6a066cb75b4cf17ec6 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-06-05 19:29:30 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-06-27 15:27:41 +0000 pir: Use device_set_descf() No functional change intended. MFC after: 1 week (cherry picked from commit a96a9577127c9bf804e7e47e38e7b4123a43efa1) --- 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 d3ae100a43d0..71dbb66b920b 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.c @@ -654,11 +654,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); }