Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2024 20:37:47 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 1878529d2fc8 - main - amdsbwd: Use device_set_descf()
Message-ID:  <202406162037.45GKbl1J079169@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=1878529d2fc861ba2f14ec3c15bf373221883e41

commit 1878529d2fc861ba2f14ec3c15bf373221883e41
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-06-05 14:15:36 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-06-16 20:37:26 +0000

    amdsbwd: Use device_set_descf()
    
    No functional change intended.
    
    MFC after:      1 week
---
 sys/dev/amdsbwd/amdsbwd.c | 4 +---
 1 file changed, 1 insertion(+), 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406162037.45GKbl1J079169>