From nobody Sun Jul 14 18:30:20 2024 X-Original-To: dev-commits-src-main@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 4WMYmF2RsDz5R88x; Sun, 14 Jul 2024 18:30:21 +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 4WMYmF0kKQz4XtF; Sun, 14 Jul 2024 18:30:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720981821; 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=27huV686KT2e7IhnjcKphfcnJubmRAsQXa5dOFKQU/8=; b=NcbsppuC70kbCyhepy0A4UlLWo5zECWvtlBNGKXu847L7m3mDIZemhlDAhp2/CUkPNpiIq FDiI10kw4mRd1oCU0/eLDVo4Wma+ItgXenZfJZ0fJ0iYuV7uTbDP0XEfrNL0np/S80bRM7 PC2avS1NjSNJkdFyXvkcWGi4jx98j7ytRbwox+lZKY5g30RgQZIesx2bRhmcuMe/qU7vqq C7qe/2IjpMjW+wV9jgAn3IxWbmQz21RDsJC4Y2TLe6C+r6pXw+Bf5A5aMa0Dd/mO6cpxCk EjnbuqQ1f+TTdb+jtF5KuXi5Vj3Ckffun2Ux2N9hl2XvzfueXPmgauh0w/LGlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720981821; a=rsa-sha256; cv=none; b=ogtwmqjV6tijWuU34OvT8V9VnTyYEeFgUTV6ufH6KfncVn4HxJy8zID6MKSW9RE4/GgZ+N hLNtJ7ZpBosmEDAPfKLdBr5XUFwzkVaTraXAo6E6aJE+LhTktc5OECgEB8vNqOur0+7yDJ 6OLkPjnVoasCalvmzhunArVdS7lrqZTd/lMHQBqz7cHtFGPA+L5cOUVF3j6GpONsKVdOgc lAJTaLEb+uEXIXKPouGq01W0hPvhaZuDBESIiDJa2Kir+aFsBdHMkNAaRAzPc0grBSb+13 pUK1Dfs1ikU/bt9f18raMAPkf9l/C+qm1Itra4Jnkq1Z4eymZxlq+oK4Wc9Lnw== 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=1720981821; 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=27huV686KT2e7IhnjcKphfcnJubmRAsQXa5dOFKQU/8=; b=w7EfboVIA0PBAIZUKUeWtg259vBdzPv2mS6IOMlbSd8yte2h85pYpGxqIt3i9L9o9IK53O Pbs3JrytEJCnPO58l+rM3USp+2J0Y/C+XF5ThOS5XdX1u1hBard8SvTMqugIIv9ojmRlme bbV10Tsup4l/YLllEAupLK8Tu2Umo0oq86wA9R2h9bBJueJEbnKuYC651tZyjZR1sqYoOr 0A+4JNTKOEwLTgTjKaVm4sNnV6qKsR3+zKZ6gzCL39tIKVpRrMP2V/M48TgJD16vA3ZtzW Toy48EEGPmjY2UmiU5h3zqV1AVoGiD7KDRJDXb6ya7LrZVQcSSsi1BAyIjSeyQ== 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 4WMYmF0LltzKx8; Sun, 14 Jul 2024 18:30:21 +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 46EIUKoV020541; Sun, 14 Jul 2024 18:30:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46EIUKLZ020538; Sun, 14 Jul 2024 18:30:20 GMT (envelope-from git) Date: Sun, 14 Jul 2024 18:30:20 GMT Message-Id: <202407141830.46EIUKLZ020538@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: 1c64b3aba3d0 - main - hptiop: Use device_set_descf() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 1c64b3aba3d0e2910ac52c18e3c240348eb3e36e Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=1c64b3aba3d0e2910ac52c18e3c240348eb3e36e commit 1c64b3aba3d0e2910ac52c18e3c240348eb3e36e Author: Mark Johnston AuthorDate: 2024-07-14 16:18:27 +0000 Commit: Mark Johnston CommitDate: 2024-07-14 18:29:15 +0000 hptiop: Use device_set_descf() No functional change intended. MFC after: 1 week --- 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 547957c30ef1..8252dbad4a07 100644 --- a/sys/dev/hptiop/hptiop.c +++ b/sys/dev/hptiop/hptiop.c @@ -1798,7 +1798,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; @@ -1851,9 +1850,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));