mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dma: Remove redundant 0x prefixes
@ 2026-11-04 15:54 ` Thorsten Blum
  2026-11-05  7:46   ` Marek Szyprowski
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

* Re: [PATCH] dma: Remove redundant 0x prefixes
  2026-11-04 15:54 ` [PATCH] dma: Remove redundant 0x prefixes Thorsten Blum
@ 2026-11-05  7:46   ` Marek Szyprowski
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Szyprowski @ 2026-11-05  7:46 UTC (permalink / raw)
  To: Thorsten Blum, Robin Murphy, Michael Kelley, Will Deacon, Petr Tesarik
  Cc: iommu, linux-kernel

On 04.11.2026 16:54, Thorsten Blum wrote:
> 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>

Applied to dma-mapping-for-next. Thanks!


> ---
>  kernel/dma/debug.c   | 4 ++--
>  kernel/dma/swiotlb.c | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-05  7:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20261104155542eucas1p21319566787c295bf97d096bc5f85474a@eucas1p2.samsung.com>
2026-11-04 15:54 ` [PATCH] dma: Remove redundant 0x prefixes Thorsten Blum
2026-11-05  7:46   ` Marek Szyprowski

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®