Date: Thu, 27 Jun 2024 15:31:10 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 2e382b3bc8e7 - stable/14 - superio: Use device_set_descf() Message-ID: <202406271531.45RFVAXs078907@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2e382b3bc8e75583e2b260e88d5b38ccbfd1112b commit 2e382b3bc8e75583e2b260e88d5b38ccbfd1112b Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-06-05 19:25:58 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-06-27 15:27:41 +0000 superio: Use device_set_descf() No functional change intended. MFC after: 1 week (cherry picked from commit 76a79178187f5a3ac05733e068c0860b14fd8632) --- 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 6333cb06a7c1..ff05d378ce92 100644 --- a/sys/dev/superio/superio.c +++ b/sys/dev/superio/superio.c @@ -616,12 +616,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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406271531.45RFVAXs078907>