From nobody Thu Jun 27 15:30:54 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 4W92b25ZHWz5PtbK; Thu, 27 Jun 2024 15:30:54 +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 4W92b258NYz49wb; Thu, 27 Jun 2024 15:30:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719502254; 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=cYvtJzbTGbbKVTfEgxq4Ae+DsCbHd8Tg8/K8a6dDi7o=; b=or1czDQAjQ5EdhFjfab3e3+5pAu0EHcSsR0bE2IeDKDJSQcQ3neonofqvPZWY75ABuxn1n nMI5ny5G5shj3QV1dLkjFUxC0GVAt3OWLM+e/sqq3hIncgWvNavn02eU40NGV3XtUBQw3H 6D0jVZkRDVsYCUtH9nb9ZyJejbKamiv29fOY9P1GZw30gyuJlwQyxEBlEA4JP8hM+MpUKo 2aMhmWweSSNvmJBHx4Oam+gZnF5cbj8mcuUVf+02M6Y1qF++VpN8fpwBOanrFF9faYcxaB gaPaSNKYzAJMGvbm3Z4L5aTwtJpVp6gGfT3CCrGf9W9bxnyGA68bM+7D8CxdVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719502254; a=rsa-sha256; cv=none; b=JlugB2upDzbY/fxv9PYJ+tNzU8Mf/U3WF4Ta0klSThbkwKEu/O0qLT/8/vrUSR3aP7bx/s EwS5ZqFiQQ7q0jxQDGeio727RBqfv5lRUTmjMgQ4nUgi4n+MEOZKre9c8E8YRh5TiNc50r 16IJ89kEVq9yyJ0/H5UuSr+OcqVSU0Emc0L8nF+T55yjl/IYTM/w+N7m7gc+tgj+EWTjIX i0O+MKH7ndSEOITXD4PcEoAqQ9G0nL/9GDo6afXDxjPI06Up2C0bevs6JnpRPO+ojS9n/b TnSoWi8AMK3LIdjOaz4HN3K8JzLv7FGBjyeyWkXhdEnCEsbp371pSn8ydBeI7g== 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=1719502254; 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=cYvtJzbTGbbKVTfEgxq4Ae+DsCbHd8Tg8/K8a6dDi7o=; b=ZjXGSDSyLY+hcIwGKhwKKhp6PC1GNLEsO2GgxBHdb2UZlxf1msONmVlnQow5dzomR+lCyO ACROi+kisH/Vq10VQqUqK+IIP5lv7448zf+dUAZ3lI087gt0njjKXBLwlEIkVLPe8bBgTo 96HFxant9KRoNw6l6bNyCsg7OCiszlkrGf9XypJlJPEtKEFfgqIIosnJ5ILgpd2o76McvT /vxlrACRd1NXLVkDH2olzjkVcF9yMMrBuFsjQyDsvQ8aL2fF53JEOjRLhuNGwXNAtpy6lT Ew8zjSVsc4dq2wbL86uMyxAg8BM9/4FEECZ6AKb32E3Gu1Fz1c518KiMJwmUtA== 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 4W92b24mQYzHlm; Thu, 27 Jun 2024 15:30:54 +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 45RFUs7q078382; Thu, 27 Jun 2024 15:30:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45RFUsIl078379; Thu, 27 Jun 2024 15:30:54 GMT (envelope-from git) Date: Thu, 27 Jun 2024 15:30:54 GMT Message-Id: <202406271530.45RFUsIl078379@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: aebd6d5b1fc4 - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: aebd6d5b1fc43826fe688d0ea1b6fd4cd11492b7 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=aebd6d5b1fc43826fe688d0ea1b6fd4cd11492b7 commit aebd6d5b1fc43826fe688d0ea1b6fd4cd11492b7 Author: Mark Johnston AuthorDate: 2024-06-05 14:13:26 +0000 Commit: Mark Johnston CommitDate: 2024-06-27 15:27:41 +0000 arcmsr: Use device_set_descf() No functional change intended. MFC after: 1 week (cherry picked from commit 4f0ff49fee00dee624e13b2d305cf9dfee395b7d) --- 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); } /*