All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>,
	stable@dpdk.org, Wenbo Cao <caowenbo@mucse.com>
Subject: [PATCH 6/7] net/rnp: fix register debug log format
Date: Fri,  4 Sep 2026 12:12:41 -0700	[thread overview]
Message-ID: <20260904191652.2399074-7-stephen@networkplumber.org> (raw)
In-Reply-To: <20260904191652.2399074-1-stephen@networkplumber.org>

The register offset is a size_t but was printed with %p, producing a
-Wformat warning at every call site (22 in a full build) when
RTE_LIBRTE_RNP_REG_DEBUG is enabled.  Print it with %zx instead.

Fixes: 18d555f74fcf ("net/rnp: add mailbox basic operations")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 drivers/net/rnp/base/rnp_osdep.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/rnp/base/rnp_osdep.h b/drivers/net/rnp/base/rnp_osdep.h
index 58dcb40f90..a95a37f2fe 100644
--- a/drivers/net/rnp/base/rnp_osdep.h
+++ b/drivers/net/rnp/base/rnp_osdep.h
@@ -90,14 +90,14 @@ rnp_reg_read32(const void *base, size_t offset)
 {
 	u32 v = rte_read32(((const u8 *)base + offset));
 
-	RNP_PMD_REG_LOG(DEBUG, "offset=%p val=%#"PRIx32"", offset, v);
+	RNP_PMD_REG_LOG(DEBUG, "offset=%#zx val=%#"PRIx32"", offset, v);
 	return v;
 }
 
 static inline void
 rnp_reg_write32(volatile void *base, size_t offset, u32 val)
 {
-	RNP_PMD_REG_LOG(DEBUG, "offset=%p val=%#"PRIx32"", offset, val);
+	RNP_PMD_REG_LOG(DEBUG, "offset=%#zx val=%#"PRIx32"", offset, val);
 	rte_write32(val, ((volatile u8 *)base + offset));
 }
 
-- 
2.53.0


  parent reply	other threads:[~2026-09-04 19:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-04 19:12 [PATCH 0/7] fix XXX_DEBUG warnings Stephen Hemminger
2026-09-04 19:12 ` [PATCH 1/7] bus/fslmc: fix build of qbman debug code Stephen Hemminger
2026-09-10 16:51   ` hemant.agrawal
2026-09-04 19:12 ` [PATCH 2/7] bus/fslmc: fix signed comparison in buffer acquire Stephen Hemminger
2026-09-11  5:00   ` Hemant Agrawal
2026-09-04 19:12 ` [PATCH 3/7] crypto/caam_jr: fix descriptor dump build Stephen Hemminger
2026-09-11  5:01   ` Hemant Agrawal
2026-09-04 19:12 ` [PATCH 4/7] crypto/ipsec_mb: fix missing header for debug build Stephen Hemminger
2026-09-04 19:12 ` [PATCH 5/7] power/amd_uncore: fix debug log build Stephen Hemminger
2026-09-04 19:12 ` Stephen Hemminger [this message]
2026-09-04 19:12 ` [PATCH 7/7] net/vmxnet3: remove unused queue dump functions Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260904191652.2399074-7-stephen@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=caowenbo@mucse.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.