RDMA/cxgb4: Don't expose DMA addresses
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 20 May 2019 06:54:32 +0000 (09:54 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 27 May 2019 17:32:17 +0000 (14:32 -0300)
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>
drivers/infiniband/hw/cxgb4/cq.c

index 2c0587d..6557e7c 100644 (file)
@@ -1135,9 +1135,9 @@ struct ib_cq *c4iw_create_cq(struct ib_device *ibdev,
                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);