From nobody Sun Jun 16 20:37:55 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 4W2PwM6KyHz5PRRW; Sun, 16 Jun 2024 20:37:55 +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 4W2PwM541gz3x23; Sun, 16 Jun 2024 20:37:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570275; 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=HwTnbv07N4BqWDoQDje4brh10xwqROR7Mca/qs/UjWo=; b=IKQjEXLQ2Rln/H43ItRUZuloHbN7uAUqYMDbK4cotSl/s2wzxohWZnlat2giuJVPsbQRQc iJ4497D8tVtm1LcMOmvXqk/j6i5hGuHzVWHKVUi2v1e7AIY9c/Hl/ZOL8c/3eOo0KXuERu a6H4nwIhziTOx0j8uWWBo+bqOD8NhILLk4GK9lPIFm+YY3Cgde71kPiiJlrKHC3hdf/F8i 0KldgRKtaVh68Wp8yVaZdZIEIolYgRjCzEfcbzzDtBWg3j5mKHqgU0rIOU5HOGisAKyImN phA3JtJr3UIHYSJ9B8wIOaF3bVsajxSdJgk4VSnQr97tt6WibGjpN3mBRYas9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570275; a=rsa-sha256; cv=none; b=OVfHMr9rBRRqTCAW1zsQ7QJfhwJxsLHkIE37f8AAca4rgmcaTUKQ8O4aMC2z18/a4I9Nmz W8/4ZsOFg5blCwUzSUh88C762aeBBfIq6T3Sz52gEwOf6REzrXfEjxa6GGBPzZ9cqVBp79 BmUp46qwrC97nLX4/Ths5YSi7rNhjvlcGYiJxORtSqtUenEtqH6GFZHa48whZDyLx+cje8 NYVBmlkNWxSojI7FZnBRHSZe8E+k/zyudXx8g8HKaFOFzaMCTEaiuZi6lnjI/F1WEgoNkX ndKYuL9Zuhg7vIB8VpInjq+uhBMntqnsCcJu2/izfNBbVUkcObjeTWgrQUQxiQ== 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=1718570275; 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=HwTnbv07N4BqWDoQDje4brh10xwqROR7Mca/qs/UjWo=; b=ui7tB9d9zk9nXcAjCW49rJzgK1+mpawo1PF/Ce0HF7WXo8xbZJujntURLjbh9WZl2JdFhq RHznv3tgC2ECo6sLIH1Qdu0v9DTtsGKGx/Gc4/ybsMUr95UFLkRRmHPnyJ3DxGtd5L0ieT zHcBQtLIB/LEMnkfg/wJNydDN6sVYzVGD1F0FwCw2Q86eUzabLm5BUkeBk6TzKne4QdB2p ccB6VSuy8hI+yodLurzOEwz7Da587uXbD7F3W21BoFW7h17L5vLYE+oO1zDM/tUPd1224r V/hLkIn/10trxfV5bOCdxu6Xb9Z4B4pCWBj77KgWyTyDshItg/c96VMqOGjABg== 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 4W2PwM4hJLz1320; Sun, 16 Jun 2024 20:37:55 +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 45GKbt6L079459; Sun, 16 Jun 2024 20:37:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKbt4V079456; Sun, 16 Jun 2024 20:37:55 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:37:55 GMT Message-Id: <202406162037.45GKbt4V079456@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: 443f33481e46 - main - msk: 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: 443f33481e461ae1f36e0110537131b972ec6a37 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=443f33481e461ae1f36e0110537131b972ec6a37 commit 443f33481e461ae1f36e0110537131b972ec6a37 Author: Mark Johnston AuthorDate: 2024-06-05 14:20:58 +0000 Commit: Mark Johnston CommitDate: 2024-06-16 20:37:26 +0000 msk: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/dev/msk/if_msk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c index bb00ffc7ae34..2165cb73f7cd 100644 --- a/sys/dev/msk/if_msk.c +++ b/sys/dev/msk/if_msk.c @@ -1564,7 +1564,6 @@ static int msk_probe(device_t dev) { struct msk_softc *sc; - char desc[100]; sc = device_get_softc(device_get_parent(dev)); /* @@ -1573,11 +1572,10 @@ msk_probe(device_t dev) * mskc_attach() will create a second device instance * for us. */ - snprintf(desc, sizeof(desc), + device_set_descf(dev, "Marvell Technology Group Ltd. %s Id 0x%02x Rev 0x%02x", model_name[sc->msk_hw_id - CHIP_ID_YUKON_XL], sc->msk_hw_id, sc->msk_hw_rev); - device_set_desc_copy(dev, desc); return (BUS_PROBE_DEFAULT); }