From: Leon Romanovsky <leonro@mellanox.com>
Date: Mon, 20 May 2019 09:54:32 +0300
Subject: RDMA/cxgb4: Don't expose DMA addresses
Patch-mainline: v5.3-rc1
Git-commit: cae626b97851afc2219e7607183a9a23cbba3bef
References: bsc#1136348 jsc#SLE-4684
Change unconditional print of DMA address to be printed with special
printk format type specifier.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
---
drivers/infiniband/hw/cxgb4/cq.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/drivers/infiniband/hw/cxgb4/cq.c
+++ b/drivers/infiniband/hw/cxgb4/cq.c
@@ -1134,9 +1134,9 @@ struct ib_cq *c4iw_create_cq(struct ib_d
mm2->len = PAGE_SIZE;
insert_mmap(ucontext, mm2);
}
- pr_debug("cqid 0x%0x chp %p size %u memsize %zu, dma_addr 0x%0llx\n",
- chp->cq.cqid, chp, chp->cq.size,
- chp->cq.memsize, (unsigned long long)chp->cq.dma_addr);
+ pr_debug("cqid 0x%0x chp %p size %u memsize %zu, dma_addr %pad\n",
+ chp->cq.cqid, chp, chp->cq.size, chp->cq.memsize,
+ &chp->cq.dma_addr);
return &chp->ibcq;
err_free_mm2:
kfree(mm2);