mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thorsten Blum <blum@kernel.org>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
	Robin Murphy <robin.murphy@arm.com>,
	Michael Kelley <mhklinux@outlook.com>,
	Will Deacon <will@kernel.org>,
	Petr Tesarik <petr.tesarik1@huawei-partners.com>
Cc: Thorsten Blum <blum@kernel.org>,
	iommu@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH] dma: Remove redundant 0x prefixes
Date: Wed,  4 Nov 2026 16:54:16 +0100	[thread overview]
Message-ID: <20261104155414.126812-3-blum@kernel.org> (raw)

The %pa format specifier already includes the 0x prefix. Remove the
redundant prefixes to avoid printing 0x0x.

Fixes: 9d4f645a1fd4 ("dma-debug: store a phys_addr_t in struct dma_debug_entry")
Fixes: 823353b7cf0e ("swiotlb: Enforce page alignment in swiotlb_alloc()")
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
 kernel/dma/debug.c   | 4 ++--
 kernel/dma/swiotlb.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c
index 36c1f7cbb2ae..4cb5f86a7228 100644
--- a/kernel/dma/debug.c
+++ b/kernel/dma/debug.c
@@ -1034,8 +1034,8 @@ static void check_unmap(struct dma_debug_entry *ref)
 		err_printk(ref->dev, entry, "device driver frees "
 			   "DMA memory with different CPU address "
 			   "[device address=0x%016llx] [size=%llu bytes] "
-			   "[cpu alloc address=0x%pa] "
-			   "[cpu free address=0x%pa]",
+			   "[cpu alloc address=%pa] "
+			   "[cpu free address=%pa]",
 			   ref->dev_addr, ref->size,
 			   &entry->paddr,
 			   &ref->paddr);
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
index 2c57b49ac7c0..9f143a3361fc 100644
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -1957,7 +1957,7 @@ struct page *swiotlb_alloc(struct device *dev, size_t size, unsigned long attrs)
 
 	tlb_addr = slot_addr(pool->start, index);
 	if (unlikely(!PAGE_ALIGNED(tlb_addr))) {
-		dev_WARN_ONCE(dev, 1, "Cannot allocate pages from non page-aligned swiotlb addr 0x%pa.\n",
+		dev_WARN_ONCE(dev, 1, "Cannot allocate pages from non page-aligned swiotlb addr %pa.\n",
 			      &tlb_addr);
 		swiotlb_release_slots(dev, tlb_addr, pool);
 		return NULL;

                 reply	other threads:[~2026-11-04 15:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20261104155414.126812-3-blum@kernel.org \
    --to=blum@kernel.org \
    --cc=iommu@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=mhklinux@outlook.com \
    --cc=petr.tesarik1@huawei-partners.com \
    --cc=robin.murphy@arm.com \
    --cc=will@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®