* [PATCH] dma: Remove redundant 0x prefixes
@ 2026-11-04 15:54 Thorsten Blum
0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2026-11-04 15:54 UTC (permalink / raw)
To: Marek Szyprowski, Robin Murphy, Michael Kelley, Will Deacon,
Petr Tesarik
Cc: Thorsten Blum, iommu, linux-kernel
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-04 15:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 15:54 [PATCH] dma: Remove redundant 0x prefixes Thorsten Blum
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®