From nobody Sun Jun 16 20:37:56 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 4W2PwP37V0z5PRP5; Sun, 16 Jun 2024 20:37:57 +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 4W2PwN63nSz3xCQ; Sun, 16 Jun 2024 20:37:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570276; 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=yLuzjR2v+chykjQw1NeMcot5B+iL8zgSNNvo3Qox4nY=; b=FcFwolC9wnPrn5xixnXirP7GwiX7IFYjuqej8kOqzUnjU4JnNNTt1Pekd30YpGh0uDh6V4 ztuF6+3l0JEU3oBovKiqZVfhLIPox86IkCX0+p79HdWTG+/JejWqC9hThTbGDbxdsdjXLF cPUPci1YJKCwfTaVY6LXYMZoHQ1xLFmSpiTkqCAE39impvJeavoPyDbFWQIJh7krAO+UV9 Y7Klzh8PSQJPpm8MDvU83xFGc+9NOzr9GEOTFVDlbKhxEEGFUb7l6golsVFMJZ80kj9x5n SgitmrFfYaRR9rsXRBp5xzx7EWpgzYCEk7IskY8YZnGABSHfMBLtLCLTqrfxiQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570276; a=rsa-sha256; cv=none; b=Qp1qbvuJ3Nnw0usFtUrdMUuC93Uk0y1a2w0L1OcSAxATtEt1nIX2W6i0SCVaZdrkuIjEq+ YQ86E3basiqEebjKOgmlC+cCs924uZxfthjOihw39UX3vXaGryYLXYrHbRcTBSoybCcNUz 1HvvxhicRwxdj70Zde93zUtKbcC7+AOc6akb/rwCGA2qCssuaCtCa/7Kv6vMmnJNJqzoYQ bFA1s4r01HkJGgpNz93T6DXWzQEt9xlIGEZ0S0vlDGAG7VhfOBlTqLyL89PkHBLhTpSiSO V6gF3b1suS7QcuNetWdNdgrB/AaNNR2YM9I/21fM+Rv/GxGbf/P/YI4EXAcprg== 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=1718570276; 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=yLuzjR2v+chykjQw1NeMcot5B+iL8zgSNNvo3Qox4nY=; b=Aj3bVa9sMjxwJPT3LkJiMpq8+PMHiWSAR/rZ30pLIu4c8rGGVGwPNVPmQ5IawHJCHKfkep 82t1a16M5LvxtSy+M970bUgFDD2Zk/lgdRN0ZUy/FOMZP+SwGgX8nISF+U5CsVbQPd4iF3 Cb7fywW4KEqJf51jYnDn1uOyZH4ouCanuNbY8su/S/Chdvte54TbP9ivoYIyTFGISh+4jk Mq4pRam9+E994Vmx0Zc9i90IVohNBiPwaMbGjzrEu5i9VpVtAmpcFnCAi2oc61zwLqG2h/ o476IbbMbjAJxmOmB4u9UHggFJZRZDohO79TFvDqkDTiOZwXCpWpmj+zwD2cqQ== 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 4W2PwN5dxsz12Gl; Sun, 16 Jun 2024 20:37:56 +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 45GKbu2t079495; Sun, 16 Jun 2024 20:37:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKburl079492; Sun, 16 Jun 2024 20:37:56 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:37:56 GMT Message-Id: <202406162037.45GKburl079492@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: 1794a0a87e0c - main - liquidio: 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: 1794a0a87e0cecee1ef63fcf4f0a8a6cf6945dc8 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=1794a0a87e0cecee1ef63fcf4f0a8a6cf6945dc8 commit 1794a0a87e0cecee1ef63fcf4f0a8a6cf6945dc8 Author: Mark Johnston AuthorDate: 2024-06-05 14:26:22 +0000 Commit: Mark Johnston CommitDate: 2024-06-16 20:37:26 +0000 liquidio: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/dev/liquidio/lio_main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/dev/liquidio/lio_main.c b/sys/dev/liquidio/lio_main.c index bec510af0c65..aa52612dda04 100644 --- a/sys/dev/liquidio/lio_main.c +++ b/sys/dev/liquidio/lio_main.c @@ -200,7 +200,6 @@ lio_probe(device_t dev) uint16_t device_id; uint16_t subdevice_id; uint8_t revision_id; - char device_ver[256]; vendor_id = pci_get_vendor(dev); if (vendor_id != PCI_VENDOR_ID_CAVIUM) @@ -216,9 +215,8 @@ lio_probe(device_t dev) (device_id == tbl->device_id) && (subdevice_id == tbl->subdevice_id) && (revision_id == tbl->revision_id)) { - sprintf(device_ver, "%s, Version - %s", - lio_strings[tbl->index], LIO_VERSION); - device_set_desc_copy(dev, device_ver); + device_set_descf(dev, "%s, Version - %s", + lio_strings[tbl->index], LIO_VERSION); return (BUS_PROBE_DEFAULT); }