From nobody Sun Jun 16 20:37:47 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 4W2PwD2VHlz5PRNq; Sun, 16 Jun 2024 20:37:48 +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 4W2PwC6YFtz3wqM; Sun, 16 Jun 2024 20:37:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570267; 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=fcFcVRy9C4QwXIURG71WM4sODD3vscJO0+/yyitMYiM=; b=ysf/ALD7XneEjrQvUEUXSp3BoMUulmivAGu+0+sYP3w8ewloxoWenApOnOn53cRd7MZZKE 0ff3l14Fg5SIwzpkmCa6AvSCC1dIViNvBLN3YzD4wCtZS3GyeGIQVUbU4MKD3U9OqI0d3O +xW9gygR7XNWVQxWTgc8pjB3VO//5+SWCqmohEDRHwsnTSJIY8VYbgBVZlgxOscWA2JMWz 8hSgYQoS8aSk6lFBjwVMHegifGGHoam4GMJdYJImri6sP8Q3B5AnS3jv5qs46HQxKNGutk eP8MAoqxDi3J8YVnwMcmCi9q0SWknKrkIc1emjriZmXhKQjC2UOh/nEq65pjqw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570267; a=rsa-sha256; cv=none; b=O4HgHTgEVl++VCZ9HTTDRXpP1fcqqyI7carWfB5elIMqv0XERn10d+eHWEvz4Lvb+WvRyU ojx9751KjoaIdFbTqyiyn9jLW+BwWfcE5sKMV9B8rcS3V4DDWArOq9mNu7tl2KMRh8PQTH RfJj8sVl7Jc5tMWOZC34wrtI97LJ+lJii2Uy2YmxtHYssRDhct5qGQTvLedssvPz51zS8H bo1xLNbJjnLIGa1ihakSsFe2eIqw8ErZ4ycx5OMk3EFnOLR5E1E7nsUk90IysaqlR1amlR m8R+AyJu3ve51xw8bV2zwBs85OrQJ+PM4O3NT71s5JHzIf5xgaYmIVdnYJKc/w== 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=1718570267; 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=fcFcVRy9C4QwXIURG71WM4sODD3vscJO0+/yyitMYiM=; b=Q1OCY/Ph6+PavGN1dW4B6MFHrP5B21z7oASLpvuC5SS4HwnN3DGEdGfTMN2zbTKsSOV/2t G0zqFyIwWwdXmyOLdlc2WQqGlnwQniHtblxxcWS7+B72sbkdgsXOJlfok71DAq+nK19wkc n6Gj1+biudMylgh59KjkDSypv03exheYCLjD8Y2dqa+RzYpkyaTvpzzgM1laPqThbxtZWn K4UyvBAfd51pWRV2aP5PgYussbK++XrXeVJpvTqd4NnGeueYHmemqdNm9p6tncVluJ0EVO LJ+zME/3SAkLGZywc3tMiQoFGtrj9FuhyLqnzMgQvFX9LVQRDUWx1C6zEUExqw== 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 4W2PwC5Q0xz12KS; Sun, 16 Jun 2024 20:37:47 +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 45GKblOP079171; Sun, 16 Jun 2024 20:37:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKbl1J079169; Sun, 16 Jun 2024 20:37:47 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:37:47 GMT Message-Id: <202406162037.45GKbl1J079169@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 1878529d2fc8 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 1878529d2fc861ba2f14ec3c15bf373221883e41 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=1878529d2fc861ba2f14ec3c15bf373221883e41 commit 1878529d2fc861ba2f14ec3c15bf373221883e41 Author: Mark Johnston AuthorDate: 2024-06-05 14:15:36 +0000 Commit: Mark Johnston 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