The branch stable/14 has been updated by markj:

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

commit 50d188a805851febb238f4fce82f9d7f98249edb
Author:     Mark Johnston <[email protected]>
AuthorDate: 2024-06-05 14:19:51 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2024-06-27 15:27:41 +0000

    wbwd: Use device_set_descf()
    
    No functional change intended.
    
    (cherry picked from commit eb634b9f4f48c29753e177f3340d03f73a75dbe5)
---
 sys/dev/wbwd/wbwd.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/dev/wbwd/wbwd.c b/sys/dev/wbwd/wbwd.c
index 4fe77c1874be..9aeaa2014eda 100644
--- a/sys/dev/wbwd/wbwd.c
+++ b/sys/dev/wbwd/wbwd.c
@@ -462,7 +462,6 @@ wb_watchdog_fn(void *private, u_int cmd, int *error)
 static int
 wb_probe(device_t dev)
 {
-       char buf[128];
        struct wb_softc *sc;
        int j;
        uint8_t devid;
@@ -479,10 +478,9 @@ wb_probe(device_t dev)
        for (j = 0; j < nitems(wb_devs); j++) {
                if (wb_devs[j].device_id == devid) {
                        sc->chip = wb_devs[j].chip;
-                       snprintf(buf, sizeof(buf),
+                       device_set_descf(dev,
                            "%s (0x%02x/0x%02x) Watchdog Timer",
                            wb_devs[j].descr, devid, revid);
-                       device_set_desc_copy(dev, buf);
                        return (BUS_PROBE_SPECIFIC);
                }
        }

Reply via email to