git: 76a79178187f - main - superio: Use device_set_descf()

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

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

commit 76a79178187f5a3ac05733e068c0860b14fd8632
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-06-05 19:25:58 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-06-16 20:37:26 +0000

    superio: Use device_set_descf()
    
    No functional change intended.
    
    MFC after:      1 week
---
 sys/dev/superio/superio.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sys/dev/superio/superio.c b/sys/dev/superio/superio.c
index 35b15ac4d62e..ddb06af93bec 100644
--- a/sys/dev/superio/superio.c
+++ b/sys/dev/superio/superio.c
@@ -615,12 +615,9 @@ superio_detect(device_t dev, bool claim, struct siosc *sc)
 	if (superio_table[i].descr != NULL) {
 		device_set_desc(dev, superio_table[i].descr);
 	} else if (sc->vendor == SUPERIO_VENDOR_ITE) {
-		char descr[64];
-
-		snprintf(descr, sizeof(descr),
+		device_set_descf(dev,
 		    "ITE IT%4x SuperIO (revision 0x%02x)",
 		    sc->devid, sc->revid);
-		device_set_desc_copy(dev, descr);
 	}
 	return (0);
 }