diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2024-06-05 14:15:36 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2024-06-16 20:37:26 +0000 |
| commit | 1878529d2fc861ba2f14ec3c15bf373221883e41 (patch) | |
| tree | d4dbdc8733e996b7d485b896ed78aa3f15519c66 /sys/dev/amdsbwd | |
| parent | 5823a09f79499d426f9f57131be756ddc9be3ff9 (diff) | |
Diffstat (limited to 'sys/dev/amdsbwd')
| -rw-r--r-- | sys/dev/amdsbwd/amdsbwd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/amdsbwd/amdsbwd.c b/sys/dev/amdsbwd/amdsbwd.c index b04aa8564ccd..1dfe6c1b11bf 100644 --- a/sys/dev/amdsbwd/amdsbwd.c +++ b/sys/dev/amdsbwd/amdsbwd.c @@ -376,7 +376,6 @@ static void amdsbwd_probe_fch41(device_t dev, struct resource *pmres, uint32_t *addr) { uint8_t val; - char buf[36]; /* * Enable decoding of watchdog MMIO address. @@ -414,9 +413,8 @@ amdsbwd_probe_fch41(device_t dev, struct resource *pmres, uint32_t *addr) amdsbwd_verbose_printf(dev, "AMDFCH41_PM_DECODE_EN3 value = %#04x\n", val); #endif - snprintf(buf, sizeof(buf), "%s FCH Rev 41h+ Watchdog Timer", + device_set_descf(dev, "%s FCH Rev 41h+ Watchdog Timer", cpu_vendor_id == CPU_VENDOR_HYGON ? "Hygon" : "AMD"); - device_set_desc_copy(dev, buf); } static int |
