From nobody Sun Jun 16 20:37:45 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 4W2Pw95MCSz5PRTW; Sun, 16 Jun 2024 20:37:45 +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 4W2Pw94tQrz3wrC; Sun, 16 Jun 2024 20:37:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570265; 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=otc8G82DHxfmrBQyF7oZsTE3R7UnCn5f+sJP0/2Ql/I=; b=n2MNFmrUB/v0h1hJStvgYhe75s/BkuwmtysBMKc0oXZdWpwK09aFejMl3YvA26FZECh39U kmx1DrW10Tk+DlXIdCEPbX9gyCjkdg0okpLwR6+lc8bwTdiWTIOmtxRYGtepS6FAR5p9Dp okp9lAQgBxmobqHGD7j/gvQt111Dt3r8FgvXwXIr3PITmgPjDAOqgT8mTLrMst2gPRFqMh P8LpbDXrYkBm5OCwvBSkg9EuzD1sAzwi6C5lul417q88VmeGB1KsZMegY8zVfG1sjzid40 iSDx0giyrnNbY51JMij5cqnDf04TJ6gqcA4jjb/+u0xVGJY/YnHQFKN7I2erWg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570265; a=rsa-sha256; cv=none; b=E0/OPallFpeRJznCuuUbvsWgIP+WuF38sYrWjTiqNNaUht5xz00W05bIcXrTK7i8uDc9Wq 8bPWT0RLSuqzQ2fy/DvdM1MJg3XoUbt+QsbM0T7X3QmmHenfI14yn76xqL+QBSD3u1phHd jwtRGY9X5HMcFvXWXRwLH1/1F9PZptdRNLcDQqo31/h5tN5/TBKxphlPSpNw1az+wBsdWz niYUrXqxb0zgWdz0eiefW7cJ127ZyBPgIzO/MY0jrbuWlk5+pmr8fSbt5YB/niNyTpcOlQ Ik1VzNhk++bpsI5Sh8hzMvTuBxeAPEa4qM9nlLUxsLviAwYCl7tizmyRW/qlYQ== 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=1718570265; 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=otc8G82DHxfmrBQyF7oZsTE3R7UnCn5f+sJP0/2Ql/I=; b=e8BuhEd8ysPM534BprMDnfBl6RaMGc3gKB4lEV5j4kwdmStfPbbwEd/733TfzqqKt0/Bc2 VY95njJMXd48gzLM/WPz2ggvveaEt44FodFI2zBTvIfdBEXxGsFsvT78cl5h1JB4rs+XRy gv5RyDTcaUxSaPoEXBrEiWl/E7F+BZnlivo29m6b32ADg6vkfd3vu5uXuSHBD9lm4YXnTc T6P2s/q3yqvHiqucgY54BfksBZEHVYHIbSNM7oqMc5iNe3sqh2orZ1rPimbV9YiULMw0jv x+rA/DCGh2cAmpJSEB/HnuIrWCcGXGn/W6WX5oCO1yzxH7WWVs6Uctln2tlSvQ== 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 4W2Pw94Mlyz12Gj; Sun, 16 Jun 2024 20:37:45 +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 45GKbjlX079091; Sun, 16 Jun 2024 20:37:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKbjYB079088; Sun, 16 Jun 2024 20:37:45 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:37:45 GMT Message-Id: <202406162037.45GKbjYB079088@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: 4f0ff49fee00 - main - arcmsr: 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: 4f0ff49fee00dee624e13b2d305cf9dfee395b7d Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4f0ff49fee00dee624e13b2d305cf9dfee395b7d commit 4f0ff49fee00dee624e13b2d305cf9dfee395b7d Author: Mark Johnston AuthorDate: 2024-06-05 14:13:26 +0000 Commit: Mark Johnston CommitDate: 2024-06-16 20:37:25 +0000 arcmsr: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/dev/arcmsr/arcmsr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/dev/arcmsr/arcmsr.c b/sys/dev/arcmsr/arcmsr.c index ea37da30db93..6de4372a67ea 100644 --- a/sys/dev/arcmsr/arcmsr.c +++ b/sys/dev/arcmsr/arcmsr.c @@ -5238,7 +5238,6 @@ static int arcmsr_probe(device_t dev) { u_int32_t id; u_int16_t sub_device_id; - static char buf[256]; char x_type[]={"unknown"}; char *type; int raid6 = 1; @@ -5313,9 +5312,8 @@ static int arcmsr_probe(device_t dev) } if(type == x_type) return(ENXIO); - sprintf(buf, "Areca %s Host Adapter RAID Controller %s\n%s\n", - type, raid6 ? "(RAID6 capable)" : "", ARCMSR_DRIVER_VERSION); - device_set_desc_copy(dev, buf); + device_set_descf(dev, "Areca %s Host Adapter RAID Controller %s\n%s\n", + type, raid6 ? "(RAID6 capable)" : "", ARCMSR_DRIVER_VERSION); return (BUS_PROBE_DEFAULT); } /*