From nobody Thu Jun 27 15:31:15 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 4W92bR3b6tz5Ptkt; Thu, 27 Jun 2024 15:31:15 +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 4W92bR227zz4CWy; Thu, 27 Jun 2024 15:31:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719502275; 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=U3vKgaYU/foqGH1GtkCBCB0oT9zScUY67/O0tRYWWbE=; b=B6FT3ccCctZFeS3Zr6hkW2S4ZoRGMcu3tuIkz50QBF37yxAGFSF1ksQMyCM4tpisslse5E NXJEYF6INz75lISIWHG+Zus1syIt49p9mYXM7AcQjuyd4uYagsQPnAv1FGN4XPGM+sBSS5 pqZv+jvek4wAPdB2FyUAnKJBirW6phh1g12WLdv2pdKL55cMi61B6Ea8v5IYmJTOf8BwPf uox7bXT+UOryKi+gWvGfhzyu65wHm/DM8zN9fgbeLRiqVVaAnHSOivIDeYcAiiPtWffCHI W3r62HW/nmOqo01bqWR8lTni2ztmxP4orzlcvcUkvH4nS61D/YkOnhm9FFBTpw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719502275; a=rsa-sha256; cv=none; b=jXq7WkXenmdtKO7TcRKDV3Tn+2O7Zr1xRqHAqCx8stDl67Ldun/kQ31Yj8oQhS6UeaOk36 EJkifWYKyqE90U/tb6QrAWCKCv9djuqtRg50mnwL7DSEoIz32Vnkggna6p4lunFxIY3gqv v3osnn8v+bXONuqI32Gw091ZmLlePcqbKvo9LQ2j0KdTyfKWVQB+QpxXEcApJ3q3zk/XqM 0Fo5HQx006Zi/+GuxiMd1JwQ+H8UjXlQpi5fo5S+n7ffK12vxlbCrwuEQs+P4HQr/NCtvK G4QbxC72xvNDbzyd7F4nkKp+XeG0TI0z0JijGXtEy8/qA8mt4CHFVXen1+Sfcw== 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=1719502275; 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=U3vKgaYU/foqGH1GtkCBCB0oT9zScUY67/O0tRYWWbE=; b=TD/HRwpsgaBNydioUUnGTZMBXfzSV3u/SQBPPCBiFbjvEeg2m9pkGqJ/uvKgWr77ye0wnl HkTGFW+nbSme72o2rL9lor4WZd1pxgmxL7RC43Phq5m+4XvKCQ7/frMnvjVYIuaYd/Nrb0 y4Bq+VaGJcFzIjn753QgBneG8SbSECSCk4SB59yan33lafTvk1dGqlIsGCVB4gEr5vQayn FXOd14RCtSc+4IrRbNxOPmY0ZVb3QXWA69WQrlZn9tFbaHcPd0+kbbjoLVXX5ns7rjSF9z XpxAd9c7+BC4ZC9WhIZ3pm8KaI7VdpRUJkYi+Lm48P6legfLe6oAeaCZCRV1TA== 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 4W92bR1B0RzJ6C; Thu, 27 Jun 2024 15:31:15 +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 45RFVFRb079060; Thu, 27 Jun 2024 15:31:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45RFVFMO079057; Thu, 27 Jun 2024 15:31:15 GMT (envelope-from git) Date: Thu, 27 Jun 2024 15:31:15 GMT Message-Id: <202406271531.45RFVFMO079057@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: 16cc589d9157 - stable/14 - mana: Use device_set_desc() 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: 16cc589d9157b318f3bf42018144e760a2ab7831 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=16cc589d9157b318f3bf42018144e760a2ab7831 commit 16cc589d9157b318f3bf42018144e760a2ab7831 Author: Mark Johnston AuthorDate: 2024-06-05 19:30:15 +0000 Commit: Mark Johnston CommitDate: 2024-06-27 15:27:41 +0000 mana: Use device_set_desc() No functional change intended. MFC after: 1 week (cherry picked from commit 89848b3445ad52c304e6f9c5036aa9108bedb4c8) --- sys/dev/mana/gdma_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/mana/gdma_main.c b/sys/dev/mana/gdma_main.c index e09918496b03..d0438f127b83 100644 --- a/sys/dev/mana/gdma_main.c +++ b/sys/dev/mana/gdma_main.c @@ -1750,7 +1750,6 @@ static int mana_gd_probe(device_t dev) { mana_vendor_id_t *ent; - char adapter_name[60]; uint16_t pci_vendor_id = 0; uint16_t pci_device_id = 0; @@ -1764,8 +1763,7 @@ mana_gd_probe(device_t dev) mana_dbg(NULL, "vendor=%x device=%x\n", pci_vendor_id, pci_device_id); - sprintf(adapter_name, DEVICE_DESC); - device_set_desc_copy(dev, adapter_name); + device_set_desc(dev, DEVICE_DESC); return (BUS_PROBE_DEFAULT); }