dma: Remove redundant 0x prefixes
PATCH 1/1 dma: Remove redundant 0x prefixes
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 <[email protected]>
--- kernel/dma/debug.c | 4 ++-- kernel/dma/swiotlb.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
kernel/dma/debug.c +2 -2
@@ -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);
kernel/dma/swiotlb.c +1 -1
@@ -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 ;
Quoted 6 lines · Thorsten Blum
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 <[email protected]>
Applied to dma-mapping-for-next. Thanks!
Quoted 5 lines
--- kernel/dma/debug.c | 4 ++-- kernel/dma/swiotlb.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
Best regards
Signature · 2 lines
Marek Szyprowski, PhD Samsung R&D Institute Poland