From nobody Sun Jun 02 23:47:16 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 4VstnK0P52z5LVXy; Sun, 02 Jun 2024 23:47:17 +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 4VstnJ5fMnz49yk; Sun, 2 Jun 2024 23:47:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717372036; 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=ia7iSExN+oR9AVRq0mjHxske05HyHefYTCvLDXdXCyM=; b=hg84EFCg7laby+pb8Nunt7dCbiE3/9XbDQGSa4wXX1s7EkeBEA38Wl98SgeQJ5e+Z/MPei 1veDsExS90X1j6LECSDEYp74mSL/LuDcHlvl+5qQ/s56Y7sDQdq7sh6/CztGAjSDkIddLM onRbkw7NvtwlJGDuFbDyskGAVjiZeR9QQ8SUMg72LSXf87j54WjwGsY1JnSE5b3oqIZStA r8a05ieiFDCb2PTfff5GqEG82FDkBe+/VJh3a7PbMtAFQf8iKGkpjV+OU4CV33fXWqVF0d Q6NiQooLAkvDBz0K0odRtZe2mX9BGolUvbYFWtrB99H1j4Fdi6HzSwFhNvfC/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717372036; a=rsa-sha256; cv=none; b=VaAVIjHlWVrKQUQPn0H/Jg7ThVG4QicD1bVv9T8zgTTiGQ6cMQkdsBCDCnUnImCzpyYIHn CBsMcF5zNcNCb3HqSu+Hej73MXaxdu59yGlzXuF8mx8n/Jds2J/DghkeAfiw8oS602hKpr l11FKR9OklyWh5mpZ8zU5xqM/T1B0yNKb+yUwjzPoeoO8BisRf3B0TbVhygNu9M5XLxHPG s1ixT6OA54TS7JPkgu2ZAPeX6bGi5ABBxYHndaEVQ6vMXbNf/PHQkwniz5TocYG/mD6wRD wJg1YW93IGud19HiPNBG/nbvIzIxlAfPRLMFgncqWPyzSS2GNTiUvDc20It8Gw== 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=1717372036; 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=ia7iSExN+oR9AVRq0mjHxske05HyHefYTCvLDXdXCyM=; b=ce/u99Swx/qxM4JEj4/cfLwXHL+mfntUf/NyGMj/85/gyjgnRhXRbD5bXU+OjHqVR1HYcV FV5Y7H3gKGS681Y8HCHnP81x9EpVdfT79ibddCfegQq5wiTWVYtEkvipEPe79QnwKLgBEf 4SYKDJAJ93W55JIpY7olJozjkITBTsDIUqPgYunvWUu88nQEaByxwOTzQ5acioTv4TVEfi 0eTA3eZucywV+ddZhF53k2bs38l4igImjqK+0sCBoEyZvErKTAkSfm1jhUS6I1znELJfjz M4/8Dse8LQm5sCzWclIe3xAXLXHOE85OjT/jvx3nWZR9vcaiV8Fd7LxokC5nLQ== 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 4VstnJ50Fhz1B4w; Sun, 2 Jun 2024 23:47:16 +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 452NlGPj056589; Sun, 2 Jun 2024 23:47:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 452NlGsT056586; Sun, 2 Jun 2024 23:47:16 GMT (envelope-from git) Date: Sun, 2 Jun 2024 23:47:16 GMT Message-Id: <202406022347.452NlGsT056586@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: a1b84451159f - main - cxgbe: 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: a1b84451159fbad069ccaa4b5197a3fde7eae902 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=a1b84451159fbad069ccaa4b5197a3fde7eae902 commit a1b84451159fbad069ccaa4b5197a3fde7eae902 Author: Mark Johnston AuthorDate: 2024-02-04 23:38:04 +0000 Commit: Mark Johnston CommitDate: 2024-06-02 23:38:40 +0000 cxgbe: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/dev/cxgbe/t4_main.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 185cc1140486..03b674cb9241 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -2522,11 +2522,9 @@ reset_adapter_task(void *arg, int pending) static int cxgbe_probe(device_t dev) { - char buf[128]; struct port_info *pi = device_get_softc(dev); - snprintf(buf, sizeof(buf), "port %d", pi->port_id); - device_set_desc_copy(dev, buf); + device_set_descf(dev, "port %d", pi->port_id); return (BUS_PROBE_DEFAULT); } @@ -3499,12 +3497,10 @@ done: static int vcxgbe_probe(device_t dev) { - char buf[128]; struct vi_info *vi = device_get_softc(dev); - snprintf(buf, sizeof(buf), "port %d vi %td", vi->pi->port_id, + device_set_descf(dev, "port %d vi %td", vi->pi->port_id, vi - vi->pi->vi); - device_set_desc_copy(dev, buf); return (BUS_PROBE_DEFAULT); } @@ -5768,12 +5764,9 @@ set_params__post_init(struct adapter *sc) static void t4_set_desc(struct adapter *sc) { - char buf[128]; struct adapter_params *p = &sc->params; - snprintf(buf, sizeof(buf), "Chelsio %s", p->vpd.id); - - device_set_desc_copy(sc->dev, buf); + device_set_descf(sc->dev, "Chelsio %s", p->vpd.id); } static inline void