From nobody Sun Jun 16 20:37:48 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 4W2PwF1L2Zz5PRJk; Sun, 16 Jun 2024 20:37:49 +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 4W2PwD6s1pz3whb; Sun, 16 Jun 2024 20:37:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570269; 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=GsuzNpPsGUO8asibOlA8ZEyqmY2ZXRUhN4eqLhzL67A=; b=t1GggTeXcwcP3vJ+Mraqc1ca/Q5Tg9WSUnNdg4YMRHJKHnPNapxivWOt4U8/TItP1s1+f4 245f3r/tzXE1HSAMod5/Hqjyq6IZt/vPSkHR6q4Iq7vTpOCyAY/uc428yQQitw3u1wCZ9O wEmWj+zDmvUfweZ13UO0KIl81xSvDJ8pt3ntM9wlT1l8Rtg2TFzZjAdF7ngdPkmoXmHdFX yTdXBREx+jDYzWpu9RKYslQqn2xxY6qFhwOTbtq+xRYQwh5oHLCeu2x1Ki7Y4oVkhdBPVM AHW4mZxMEDjmNFfC+ZUkGd76oytN5MNbxUEV2d+tfkS98JZmJlLBfx9LWSDjyA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570269; a=rsa-sha256; cv=none; b=qILBwl15DX2B+1v7XsqrMUHa89pGqiW8vYJjEQXcw6yu74cKm6GSLYDukwDZt8TUcvwPUv VlaV1YCujRhev5Q4kSUbou1Igbf8s41d6nOW2G2eM6/X9aKkMcYcSlbBSz3beTI/KLOxA7 L8nx5PQdpHHapJJ70fHPZqJKt/VsBbWFM00eVfSsGYHemPekVcYhDWChpgm78LkCFXQ8r/ avimlsGKUJ4EMGRuE6DLEv1RMNfXLoAFAUP0OnRObT/avruzq3s+h9cscktHx0QoF4VHpr pq3hXsKMwGBE6GHf7XYoawYOzXeVFhXIZhfUXfBpO6pds6K11lWEknonFxRfuA== 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=1718570269; 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=GsuzNpPsGUO8asibOlA8ZEyqmY2ZXRUhN4eqLhzL67A=; b=mRqhxLPHItZxoSQC6drqWs8tOkQbxGBFPPpyY44mVsKK4eku04lZzD/CIbouq+52H/o5rD NNRWVTpVKYVWXJg600/JvduLLf6f0RQUfwOuiBdzlyi+ynXKhzaa3HOeRHvAyBAiWvMZ4o MrDLSMlgf5LKI9otMizjG6hfLNzuleJ0ajRB0ZUwHCPBUtguFpiU8s3mdDCjM5JJ3ihL/M z9xK8J0AZs/00z+lqyDzyK2aopUj0ubuGuBdTj2O26Iqutwf6jNW3bRDkzK9HaUe0V5xR3 V8S2sNJBCzASN+H0OMEkP8gziRE6/Hk9/TMBr6+4OuQDaZWkJFPaiQ4vUdqDWg== 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 4W2PwD6QL2z131x; Sun, 16 Jun 2024 20:37:48 +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 45GKbmOd079213; Sun, 16 Jun 2024 20:37:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKbm4h079210; Sun, 16 Jun 2024 20:37:48 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:37:48 GMT Message-Id: <202406162037.45GKbm4h079210@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: 48ef9cff9c29 - main - amdsmn: 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: 48ef9cff9c2934d8a13eb8624c02050cd8f00595 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=48ef9cff9c2934d8a13eb8624c02050cd8f00595 commit 48ef9cff9c2934d8a13eb8624c02050cd8f00595 Author: Mark Johnston AuthorDate: 2024-06-05 14:16:22 +0000 Commit: Mark Johnston CommitDate: 2024-06-16 20:37:26 +0000 amdsmn: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/dev/amdsmn/amdsmn.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/amdsmn/amdsmn.c b/sys/dev/amdsmn/amdsmn.c index ddb5be4c2c3c..d657ab84924a 100644 --- a/sys/dev/amdsmn/amdsmn.c +++ b/sys/dev/amdsmn/amdsmn.c @@ -185,7 +185,6 @@ static int amdsmn_probe(device_t dev) { uint32_t family; - char buf[64]; if (resource_disabled("amdsmn", 0)) return (ENXIO); @@ -202,9 +201,8 @@ amdsmn_probe(device_t dev) default: return (ENXIO); } - snprintf(buf, sizeof(buf), "AMD Family %xh System Management Network", + device_set_descf(dev, "AMD Family %xh System Management Network", family); - device_set_desc_copy(dev, buf); return (BUS_PROBE_GENERIC); }