From nobody Thu Jun 27 15:30:57 2024 X-Original-To: dev-commits-src-branches@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 4W92b6371cz5PtmP; Thu, 27 Jun 2024 15:30:58 +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 4W92b61QWhz49x5; Thu, 27 Jun 2024 15:30:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719502258; 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=D/kWh/Tc0rXSt9Pz6JG5uYJXEA8z8bNRZduojGHN7iY=; b=EzcO9AZJ9KQ3XRttzoHVsvLeuk3m2Nt1MEoRXcj1ev7j9loCdtaHpn1X9lcttPULGT92jy ImtjtHCFDNefnnelUuXkJ1+zi4dv9UwwBEB6bGQtX3VM1Hnnvf/8ETw7tAhxpyQkJfaQ70 YTR6O3qEaCKaWJf+jxaT+dSFIxqe3JWOQArBxr6Wwd4wJO9BLR9A5yZfjDb3hf3jPVPbT4 EJMm50JtqksV3Eyt71/pcsjrRrBdMO3oZMhS5D7nduTAyXiEp3ZGpof3G7MqKBCWsQWj9U koFkh2YOXjyZFsVi3rzehUcbvwzDyGLERzfGG2Y6jnfiI+5JatgUnm85CP/NkA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719502258; a=rsa-sha256; cv=none; b=STOE0t1SRYyMLns/Hw6MfPTWfw6ms7mfzyG+i0UFdzEwKMnjs+pMm53PxmjSY2uJN+UaHT 2ZWILS2NZ0BEc5M/Uglk42P4Tv0oiRdPcK63jZtGGCy9ZW9L2iH9Kh9n/6sZfcracUdi8e 6v622RbpY0h0mMWdkudNrYBBlpiwqZn9+goK+tgd0PW0qo/c8IyGMj05lOrZVDVXKqi1q3 gZ4BkkcR+2j3B4CTmikaTx+WAcYedJtLdWrxyJbO2NOqRWXecOj4wSXDs5XmVS19cqdR7R i1O3KgJpEF4Iv9j7oJViXV8llg/GFvYSu1uJFtX1KGNQf63rl3gtn6/6ThWZ/g== 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=1719502258; 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=D/kWh/Tc0rXSt9Pz6JG5uYJXEA8z8bNRZduojGHN7iY=; b=JBdfkpjfLWTUL77WnXXjU/ZIPqMOGmJZxv8YG1WFpKo+KIAJn6soxVW/IoSOj6wCAyfQL3 je6dASlj8MC5cxI8evzVV+PW5mXONL3ASqpk3hrhN4d/ASOSC0iWIhh1uHRcITYxE/pHV7 S6fynWbHWbWIT8pcCAumd4pzmOqToaKfpdpRQ2YINF46ElguXYFw3QE4R3yt5L14EnD19x Pzurp8aXNnYtn5pbwZ0ikN5vYkbFrkVJmsOGxFXhAxScfipZh/Wg3DDRw8Vsufk593YCYd 4sI2xAhEMKhGl9p6m1v7/evwXN8egUB/GpvLUmd8otq/aYd5qwWw7U4cLs0sFw== 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 4W92b60W5NzHQ7; Thu, 27 Jun 2024 15:30:58 +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 45RFUvH0078499; Thu, 27 Jun 2024 15:30:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45RFUvBi078496; Thu, 27 Jun 2024 15:30:57 GMT (envelope-from git) Date: Thu, 27 Jun 2024 15:30:57 GMT Message-Id: <202406271530.45RFUvBi078496@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: b8ddd59d9d16 - stable/14 - amdsmn: Use device_set_descf() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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: b8ddd59d9d166f0712b1739fe342558663eed78f Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=b8ddd59d9d166f0712b1739fe342558663eed78f commit b8ddd59d9d166f0712b1739fe342558663eed78f Author: Mark Johnston AuthorDate: 2024-06-05 14:16:22 +0000 Commit: Mark Johnston CommitDate: 2024-06-27 15:27:41 +0000 amdsmn: Use device_set_descf() No functional change intended. MFC after: 1 week (cherry picked from commit 48ef9cff9c2934d8a13eb8624c02050cd8f00595) --- 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 36e3c5a5cae7..5af8d9aca7bd 100644 --- a/sys/dev/amdsmn/amdsmn.c +++ b/sys/dev/amdsmn/amdsmn.c @@ -186,7 +186,6 @@ static int amdsmn_probe(device_t dev) { uint32_t family; - char buf[64]; if (resource_disabled("amdsmn", 0)) return (ENXIO); @@ -203,9 +202,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); }