From nobody Mon Jul 22 00:55:37 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 4WS1zY416bz5QwB2; Mon, 22 Jul 2024 00:55:37 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WS1zY1Zrnz4hvS; Mon, 22 Jul 2024 00:55:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721609737; 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=4ChuWT3I2yjng/bUgKkXPCm30DuCNAXyLQ1gLcL3r+0=; b=tkeVVqdzFv28vlq0TZgJiUj9bI2xOaGIUXYgG/q8Ql8p4hRjriZson/gW/9B8/BxlHLXa/ WpODfBtAqKjCbh2+XXuLf4PUs0zuMEIIoETMUBdflYi1mYr2pWkSYfXUWi7l4vBlGFhvry r3F+c8po05oyuT+WUe/Kh4F5ZLUWd+zdbrfnv+aoGhtYDfLyrgolnMfrng04TDXJ1akL5J ffvtR1Hb3SYkarKnPVQ8hWGe7YxY91XcUwgDwqI00VlCn68mXlvR1RvK/jUpSoVrhvICKU iR2yFMBELRXg7lpCfzwHIPWEWf/hd13UjCAtTeBk3N6+btvAxgAfuySgmJ8OhQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721609737; a=rsa-sha256; cv=none; b=DM5rWO7EUOo9HxdzF6/iVLH204eM6pjZLz3zvMs81UgP/qC1ofrbedvU6ywcXULsf13e26 jh2SQGHmayNqvHKdXXhZE4lwc2kz4kWo7CBhrs5quwIb8Yi/wC+zNXEnBFdenQUPg0VjiR j9cEjLsdawkCTaidMUyetV668o39aaLpZroDaUQpXglkPp2H4EBztSLZHh52CEZBUutxjf LsdGH+sd1FpA4HmKg2F9apg0NELqrVQjWYxhppyaED1pr2bXL+LIn/S+O4FMHTdpMn0HC1 3vMvbWGjiar8oZ9shJjBixPh3EC0gxkfA/uJrKe48Xk4SBaOiYhRpLze9D3hNg== 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=1721609737; 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=4ChuWT3I2yjng/bUgKkXPCm30DuCNAXyLQ1gLcL3r+0=; b=ts0GULkZ+JQ6zGk/eG3RyG02Thu/+evVw7qeQHYrt9WajPujfEdZTaG7FZVOloLvGNJnw4 5wtl6KJrW9Mm3WbWwxovOiOCO73jzDVeFeA1yPMGjIzFB3IUKwddVGo4fAx23ypy67FaVY Oxk1CSdWzmDAEycNAAToNi7TIMRXirtX+RC/CWqQZ6l0a10kKeKM9VlqfmCOzvoOqwH2dW iWces6s5wiMEfN96+sJ/NEIpZRJQ4lA6ZSo4/qqsZBalqFqFY1OCBRYedUMxWM4bY7Qjp4 SfgRFyXvrnT+KJCJYOTjPO4IfnofQhXDr/Kita+cbB85INoIbohIQvQCwZZR6w== 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 4WS1zY1CFgzNcZ; Mon, 22 Jul 2024 00:55:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46M0tbkg007280; Mon, 22 Jul 2024 00:55:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46M0tbuX007277; Mon, 22 Jul 2024 00:55:37 GMT (envelope-from git) Date: Mon, 22 Jul 2024 00:55:37 GMT Message-Id: <202407220055.46M0tbuX007277@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: 239c9c6de125 - stable/14 - hptiop: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 239c9c6de1250cc53f9f063fe9c698373aa9709c Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=239c9c6de1250cc53f9f063fe9c698373aa9709c commit 239c9c6de1250cc53f9f063fe9c698373aa9709c Author: Mark Johnston AuthorDate: 2024-07-14 16:18:27 +0000 Commit: Mark Johnston CommitDate: 2024-07-22 00:55:27 +0000 hptiop: Use device_set_descf() No functional change intended. MFC after: 1 week (cherry picked from commit 1c64b3aba3d0e2910ac52c18e3c240348eb3e36e) --- sys/dev/hptiop/hptiop.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/dev/hptiop/hptiop.c b/sys/dev/hptiop/hptiop.c index aa1251796bf1..bdb545be5b7e 100644 --- a/sys/dev/hptiop/hptiop.c +++ b/sys/dev/hptiop/hptiop.c @@ -1799,7 +1799,6 @@ static int hptiop_probe(device_t dev) { struct hpt_iop_hba *hba; u_int32_t id; - static char buf[256]; int sas = 0; struct hptiop_adapter_ops *ops; @@ -1852,9 +1851,8 @@ static int hptiop_probe(device_t dev) pci_get_bus(dev), pci_get_slot(dev), pci_get_function(dev), pci_get_irq(dev)); - sprintf(buf, "RocketRAID %x %s Controller\n", - id, sas ? "SAS" : "SATA"); - device_set_desc_copy(dev, buf); + device_set_descf(dev, "RocketRAID %x %s Controller", + id, sas ? "SAS" : "SATA"); hba = (struct hpt_iop_hba *)device_get_softc(dev); bzero(hba, sizeof(struct hpt_iop_hba));