From nobody Sun Jun 16 20:37:49 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 4W2PwG1vHZz5PRRK; Sun, 16 Jun 2024 20:37:50 +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 4W2PwG0ycdz3wxY; Sun, 16 Jun 2024 20:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570270; 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=p2h+/G85YFP7BxA87gYj6/+IZKXmLOHTnsRTk6Xc2DM=; b=M7nP1m5pU8cjTuCYPBWBrVzKuitXHaxA13lchUAtjLLjTKP7sJUE1tikjYJxAK7Ep1d+o6 IZ+c+Un+XxkRw56uFgFok8FddpQuDnHrBnQuXNjbJaGWJT74MaabKTnyZlg9tRqdnkob3D ftUg1PGJ6atCdrZXGATaA3VgDfFnTFr2nOJLqRO56/hacrgmVoSub14b6ZK5rDcGO2ZPeN bDAV19IXejEwkMNkDA1tY+XfWGL9+gj6AFVB733cd+vca1yuNPudjpjaiCRI3/7XIKf9/X TqHbCfuvR57mLGNEMuRzUkKyjqOOwqfR/0MPMxkXHnrWbSL+UN6jsniJq5WynQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570270; a=rsa-sha256; cv=none; b=p3cwe/bNeJz1qrppdlmw1Vwdbdex9rcuxYUEGI8RdDOOYokz2nPzd37uKHfHvr4yOGYnTQ 3scskvfzt20xfYsh4ze8WNAoxK4exWVDy27quPxVWMwKVemJ7SvFofDiLygyhzAHZeiGxo AuA4sP0TFTy4zltBBss9/4QVz2AbQg8EFlFlZLkHMuV7EkK4wIRL716SehRuSVE9evsTEl 2cM9Y9dd74TNHeLZA198AjzW9IdJT9kObFEVcbGu1dKYEdguhIy0gQGI4nOgKLsJviSsEW s4N04hQeiIOYks5Gvl0CcYL6fMZkZtQtsQliJJagQiTqBc2NwV3A2/CWQB0JtA== 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=1718570270; 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=p2h+/G85YFP7BxA87gYj6/+IZKXmLOHTnsRTk6Xc2DM=; b=TQXAZCAfjm1sgHXlQdv8RLA04gNncS46Gm+dWxysfQ3i3NOeTKhyE6Z71xPx98stO5dmRV HNBJJIFWDHgivqXrdPi3X/41G3bVeZObP7CyKLGZPkA2An6k0w337qDQAK3xGJCOz31RNz KyGTVjD41KhXwrbkGWGVbbzQr73qq8mBH36sXt/fwcNpCXfC1YSfNYJdjlUPA1rZU6AFZg rip80d7REf9xuXv5+X5WOUst6fiTTRyI5xDZFiAXc4oJ5E76lqzuiqjFnUpTkUAYe/jXKN GuM2V4YR0fZ5WFvv17XIoLl6Gw9Bo8QLKYKaFFmN3MkvX20FwAzvdnNoLjYZVg== 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 4W2PwG0GHPz12h8; Sun, 16 Jun 2024 20:37:50 +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 45GKbnC6079250; Sun, 16 Jun 2024 20:37:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKbnr2079247; Sun, 16 Jun 2024 20:37:49 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:37:49 GMT Message-Id: <202406162037.45GKbnr2079247@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: 44d36c9731c1 - main - netmap: 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: 44d36c9731c172977ad8a95a09c0d6fbddcc9b2f Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=44d36c9731c172977ad8a95a09c0d6fbddcc9b2f commit 44d36c9731c172977ad8a95a09c0d6fbddcc9b2f Author: Mark Johnston AuthorDate: 2024-06-05 14:17:14 +0000 Commit: Mark Johnston CommitDate: 2024-06-16 20:37:26 +0000 netmap: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/dev/netmap/netmap_freebsd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/netmap/netmap_freebsd.c b/sys/dev/netmap/netmap_freebsd.c index a4a0124471c0..cf3578ddc7fe 100644 --- a/sys/dev/netmap/netmap_freebsd.c +++ b/sys/dev/netmap/netmap_freebsd.c @@ -864,16 +864,12 @@ nm_os_pt_memdev_iounmap(struct ptnetmap_memdev *ptn_dev) static int ptn_memdev_probe(device_t dev) { - char desc[256]; - if (pci_get_vendor(dev) != PTNETMAP_PCI_VENDOR_ID) return (ENXIO); if (pci_get_device(dev) != PTNETMAP_PCI_DEVICE_ID) return (ENXIO); - snprintf(desc, sizeof(desc), "%s PCI adapter", - PTNETMAP_MEMDEV_NAME); - device_set_desc_copy(dev, desc); + device_set_descf(dev, "%s PCI adapter", PTNETMAP_MEMDEV_NAME); return (BUS_PROBE_DEFAULT); }