Commit 199eaa05 authored by Miles Chen's avatar Miles Chen Committed by Linus Torvalds

mm: cleanups for printing phys_addr_t and dma_addr_t

cleanup rest of dma_addr_t and phys_addr_t type casting in mm
use %pad for dma_addr_t
use %pa for phys_addr_t

Link: http://lkml.kernel.org/r/1486618489-13912-1-git-send-email-miles.chen@mediatek.comSigned-off-by: default avatarMiles Chen <miles.chen@mediatek.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b538e422
...@@ -434,11 +434,11 @@ void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma) ...@@ -434,11 +434,11 @@ void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma)
spin_unlock_irqrestore(&pool->lock, flags); spin_unlock_irqrestore(&pool->lock, flags);
if (pool->dev) if (pool->dev)
dev_err(pool->dev, dev_err(pool->dev,
"dma_pool_free %s, %p (bad vaddr)/%Lx\n", "dma_pool_free %s, %p (bad vaddr)/%pad\n",
pool->name, vaddr, (unsigned long long)dma); pool->name, vaddr, &dma);
else else
pr_err("dma_pool_free %s, %p (bad vaddr)/%Lx\n", pr_err("dma_pool_free %s, %p (bad vaddr)/%pad\n",
pool->name, vaddr, (unsigned long long)dma); pool->name, vaddr, &dma);
return; return;
} }
{ {
...@@ -450,11 +450,11 @@ void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma) ...@@ -450,11 +450,11 @@ void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma)
} }
spin_unlock_irqrestore(&pool->lock, flags); spin_unlock_irqrestore(&pool->lock, flags);
if (pool->dev) if (pool->dev)
dev_err(pool->dev, "dma_pool_free %s, dma %Lx already free\n", dev_err(pool->dev, "dma_pool_free %s, dma %pad already free\n",
pool->name, (unsigned long long)dma); pool->name, &dma);
else else
pr_err("dma_pool_free %s, dma %Lx already free\n", pr_err("dma_pool_free %s, dma %pad already free\n",
pool->name, (unsigned long long)dma); pool->name, &dma);
return; return;
} }
} }
......
...@@ -2659,7 +2659,7 @@ static int s_show(struct seq_file *m, void *p) ...@@ -2659,7 +2659,7 @@ static int s_show(struct seq_file *m, void *p)
seq_printf(m, " pages=%d", v->nr_pages); seq_printf(m, " pages=%d", v->nr_pages);
if (v->phys_addr) if (v->phys_addr)
seq_printf(m, " phys=%llx", (unsigned long long)v->phys_addr); seq_printf(m, " phys=%pa", &v->phys_addr);
if (v->flags & VM_IOREMAP) if (v->flags & VM_IOREMAP)
seq_puts(m, " ioremap"); seq_puts(m, " ioremap");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment