crypto: hisilicon - Fix warning on printing %p with dma_addr_t
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Aug 2019 22:47:43 +0000 (08:47 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Aug 2019 04:57:34 +0000 (14:57 +1000)
This patch fixes a printk format warning by replacing %p with %#llx
for dma_addr_t.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c

index d72e062a361971561c7e66f17a15e561dcf35d34..f975c393a6037fb071f3e71e17de5e239f784349 100644 (file)
@@ -347,8 +347,8 @@ static int qm_mb(struct hisi_qm *qm, u8 cmd, dma_addr_t dma_addr, u16 queue,
        struct qm_mailbox mailbox;
        int ret = 0;
 
-       dev_dbg(&qm->pdev->dev, "QM mailbox request to q%u: %u-%pad\n", queue,
-               cmd, dma_addr);
+       dev_dbg(&qm->pdev->dev, "QM mailbox request to q%u: %u-%llx\n",
+               queue, cmd, (unsigned long long)dma_addr);
 
        mailbox.w0 = cmd |
                     (op ? 0x1 << QM_MB_OP_SHIFT : 0) |