From nobody Tue May 28 05:41:05 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 4VpLwL0hN1z5Lgy1; Tue, 28 May 2024 05:41:06 +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 4VpLwL0G7Vz4mJt; Tue, 28 May 2024 05:41:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716874866; 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=hIRMyWK5OkwR0dCciaTxUoGEEcM1MWdld02tPbpTVO8=; b=kgP2+PtXxmfJiH4LwQqTOGNNyopyt+e4pjI6SWQhzJHsvM89ODGLKaT+AwP5Y8OIuc+Rzr RkeGqaFh9nxpyz6nV63zx+YeGC/FVziYo37kCykoU8n0x4LhF9HW6GsPxGH+FmHG3jUIvi XmRxxvRWXLfy0XGopmAM14nfputI3/6ST2H7RPDREufBAuay8inv1ihqNtDazZIqFNktMl uf1SfuRnyHwJXtvLCB3r4blW678iZHpT+dmcR5Y9fFPqS/L+UrG1O6gdMf+VMCV6T65lnl z0Po6exr3dKQ7sPL+seNZknFR9a2gkuOVXon8kfu0p5mFt959voWe6j+Z7czZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716874866; a=rsa-sha256; cv=none; b=sxsOzmL64fCIK/U60mCRutFnbMjY6hQuohgvBeceZMV88+zzxO81ZjQEWbsC660dmMvIdf rxp62f2Ms0u1Hgy+lfkKFanmWGXmTh2gE4RKsUxT/1CkZxlOVmvX/7Cl2Y/hwcHpUrgT0k gFtS8fLQvT8fFT3/vHEgj4FWKzzDSCf6khpfHVfHYljVCQqaWPlde/xv2E9FVHAVFb+s/V 92Th848EaroGg9X7DMma52YVm7/EabAEc7JB1BzSlWcvFHHZL7ANzsAGbrDmx79T3y4B/y p/C+w+fxVxBQVpXDjo0qWJnyEcYT7opyATb6v5/SnPb42Npl18s4FogFuCexgQ== 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=1716874866; 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=hIRMyWK5OkwR0dCciaTxUoGEEcM1MWdld02tPbpTVO8=; b=sV1CBKhKhNoH94iyuM1IekmU7yNoNJ/8gNdhntwPy+0kLqBx2RWNPF1FubE6IxRDggBOCv VtodZTVsL5V2E9OVy5NpvQmh82ptSU7Zkj2TTyE0MpvcHp6zDALqOm4ZfrI+CG6ZtVjJ0Z oTvydtTqjhjOYjE8WWJ+OfInivLinR5aRjXtViEcxOEooMTXpauq7IF6sPolg4V2CxA32n XHZfd0/q2hU3YjCADqVyKK89cPRwXERg6GsP7z9fn6td6DgDUdj9BsJfz9e+fAKjyssOF3 UeMN2SKDVEdrElNyOb0SVAWFZ141fLGqL/S7xuJUEdQtWJP68rS7Ihbve6X1pg== 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 4VpLwK6xWXz1FNk; Tue, 28 May 2024 05:41:05 +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 44S5f5IT046758; Tue, 28 May 2024 05:41:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44S5f58e046755; Tue, 28 May 2024 05:41:05 GMT (envelope-from git) Date: Tue, 28 May 2024 05:41:05 GMT Message-Id: <202405280541.44S5f58e046755@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: ae389777583d - main - qlxge: replace device_printf with QL_DPRINT2 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: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ae389777583dca0e354fdd43aca3413e209160f4 Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=ae389777583dca0e354fdd43aca3413e209160f4 commit ae389777583dca0e354fdd43aca3413e209160f4 Author: Fuqian Huang AuthorDate: 2024-05-28 05:40:12 +0000 Commit: Kevin Bowling CommitDate: 2024-05-28 05:40:12 +0000 qlxge: replace device_printf with QL_DPRINT2 QL_DPRINT2 checks the debug level first before printing. Replace device_printf with QL_DPRINT2 to check debug level first before printing out the kernel pointers. PR: 238656 MFC after: 1 week --- sys/dev/qlxge/qls_os.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sys/dev/qlxge/qls_os.c b/sys/dev/qlxge/qls_os.c index 8c110540a042..a1ce1c637e1c 100644 --- a/sys/dev/qlxge/qls_os.c +++ b/sys/dev/qlxge/qls_os.c @@ -160,20 +160,20 @@ qls_sysctl_get_drvr_stats(SYSCTL_HANDLER_ARGS) ha = (qla_host_t *)arg1; for (i = 0; i < ha->num_tx_rings; i++) { - device_printf(ha->pci_dev, + QL_DPRINT2((ha->pci_dev, "%s: tx_ring[%d].tx_frames= %p\n", __func__, i, - (void *)ha->tx_ring[i].tx_frames); + (void *)ha->tx_ring[i].tx_frames)); - device_printf(ha->pci_dev, + QL_DPRINT2((ha->pci_dev, "%s: tx_ring[%d].tx_tso_frames= %p\n", __func__, i, - (void *)ha->tx_ring[i].tx_tso_frames); + (void *)ha->tx_ring[i].tx_tso_frames)); - device_printf(ha->pci_dev, + QL_DPRINT2((ha->pci_dev, "%s: tx_ring[%d].tx_vlan_frames= %p\n", __func__, i, - (void *)ha->tx_ring[i].tx_vlan_frames); + (void *)ha->tx_ring[i].tx_vlan_frames)); device_printf(ha->pci_dev, "%s: tx_ring[%d].txr_free= 0x%08x\n", @@ -197,15 +197,15 @@ qls_sysctl_get_drvr_stats(SYSCTL_HANDLER_ARGS) } for (i = 0; i < ha->num_rx_rings; i++) { - device_printf(ha->pci_dev, + QL_DPRINT2((ha->pci_dev, "%s: rx_ring[%d].rx_int= %p\n", __func__, i, - (void *)ha->rx_ring[i].rx_int); + (void *)ha->rx_ring[i].rx_int)); - device_printf(ha->pci_dev, + QL_DPRINT2((ha->pci_dev, "%s: rx_ring[%d].rss_int= %p\n", __func__, i, - (void *)ha->rx_ring[i].rss_int); + (void *)ha->rx_ring[i].rss_int)); device_printf(ha->pci_dev, "%s: rx_ring[%d].lbq_next= 0x%08x\n", @@ -383,9 +383,9 @@ qls_pci_attach(device_t dev) ha->msix_count = qls_get_msix_count(ha); - device_printf(dev, "\n%s: ha %p pci_func 0x%x msix_count 0x%x" + QL_DPRINT2((dev, "\n%s: ha %p pci_func 0x%x msix_count 0x%x" " pci_reg %p pci_reg1 %p\n", __func__, ha, - ha->pci_func, ha->msix_count, ha->pci_reg, ha->pci_reg1); + ha->pci_func, ha->msix_count, ha->pci_reg, ha->pci_reg1)); if (pci_alloc_msix(dev, &ha->msix_count)) { device_printf(dev, "%s: pci_alloc_msi[%d] failed\n", __func__,