mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
wbwd: Use device_set_descf()
No functional change intended. (cherry picked from commit eb634b9f4f48c29753e177f3340d03f73a75dbe5)
This commit is contained in:
parent
b86ba6cdf1
commit
50d188a805
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue