From nobody Thu Jun 27 15:30:56 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W92b51Dbzz5Ptnv; Thu, 27 Jun 2024 15:30:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W92b50Byyz49rL; Thu, 27 Jun 2024 15:30:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719502257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6EO3wVkxD1SWMW9K91EVegw8u/UZwwnMY6tg29HYb/M=; b=uEvVUU3Itu+cZVNL6zDT6HrsNURYERRKVg2hwCLo1L6JZUJkVPPeQJGEaW4kQl/MGm5ddk jZc6K0Zxv/ddIQfc57hK4Kuxa3SuxP0DfLiPVo6sPvtrklPyx7YEUoDUJFiE52Vc9ExYHz iPbkpRc2stZgRLkvvnPj7Mcc3WT3cGINj2w6/J4CpkDaLk98E+7QDE9bmwg14rCkteVB2V /SEUqap8by53n3EjwFwhMcSK6Y0wdR2DDHMocTfSrWUaUBhT2+AuyLrdUMj5S+rP4U/q9z V5tlU2G3Lrken53ABnuQbLqjpq5fTezB4MlqIAKxtej2NMHLJ1iRVKeoPTYFmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719502257; a=rsa-sha256; cv=none; b=YPEnCt/nVnwothlvSqdjX2NhKsKM7Yn6lhwMmsxCoCdLtqLH+5ybeldELUg4HiwoZKCf4Z DTupxIsQ9AlrmeSJIkK044dPSN6/sUdTHIgH/UL24XuitMlqCypWjQwTxCtxTqLyKuANOe 5K8EWAlqBJshiepUm2hyeM1qo9ThRhoknhjLX2QCTlvNvkrcRL4pGpVuv7QDpEd8CrviEJ xuhgsCR44fo6a4aYPjvIzHssco0QlCtW7ZD2IgfIqS8VM8wYhb3iDNlYaOnbI5IvUgHQ43 r6P/AandEEKzIn8Q6Clu0gqViXEd2MxHtluhps7TV1k6bXFmP9e9z/3LBQ5MYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719502257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6EO3wVkxD1SWMW9K91EVegw8u/UZwwnMY6tg29HYb/M=; b=yX0zE5ibIkDT7zuA+52vZFx6T5JHFP8DTut0gpIFrg+nlQP6/+p556ydaFhwXgAIpZ5CJJ h62b/mYx+tl/uqfPGOuYTiG8uOitHQq2I6yqG/BEQJIfiMMrTRphAe6h8Z2JbNa1lk2icr 0xO8+V1Jov2sp++wsV3u2Mmq2UAUbzOqVlijcuYlMITpAdPcANKSZZT1yD096fgHFUy6wR MR+d18tlzDKagTEi27PPfJRagcCg/VEE4ApC/G3r4mJvHEj6xIwuu6rqaBAyiSRSIZ6Csc oq6sBSQ83j8zwrki0711RMYTtqci4st1mmIio2nfTlBson0ePJ8fdXGLWN+m7Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W92b46glWzJ0T; Thu, 27 Jun 2024 15:30:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45RFUuqR078460; Thu, 27 Jun 2024 15:30:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45RFUuvI078457; Thu, 27 Jun 2024 15:30:56 GMT (envelope-from git) Date: Thu, 27 Jun 2024 15:30:56 GMT Message-Id: <202406271530.45RFUuvI078457@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 55156b1fc397 - stable/14 - amdsbwd: Use device_set_descf() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 55156b1fc397274fa9985ecfa60dd2c69549baf3 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=55156b1fc397274fa9985ecfa60dd2c69549baf3 commit 55156b1fc397274fa9985ecfa60dd2c69549baf3 Author: Mark Johnston AuthorDate: 2024-06-05 14:15:36 +0000 Commit: Mark Johnston CommitDate: 2024-06-27 15:27:41 +0000 amdsbwd: Use device_set_descf() No functional change intended. MFC after: 1 week (cherry picked from commit 1878529d2fc861ba2f14ec3c15bf373221883e41) --- 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