summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qedf
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-03-06 10:32:27 -0800
committerMartin K. Petersen <martin.petersen@oracle.com>2017-03-06 22:39:26 -0500
commitfd2b18b4a7bf01453324733a18297ae9a197a4ae (patch)
tree41faefb300a53fedc9a699eac17ab45a3af118df /drivers/scsi/qedf
parentdb6b2060bcae1ce1f9bde73a423e710b625ae1ef (diff)
downloadop-kernel-dev-fd2b18b4a7bf01453324733a18297ae9a197a4ae.zip
op-kernel-dev-fd2b18b4a7bf01453324733a18297ae9a197a4ae.tar.gz
scsi: qedf: Use vsprintf extension %pad
Using %llx for a dma_addr_t can lead to format/argument mismatches. Use %pad and the address of the dma_addr_t instead. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Chad Dupuis <chad.dupuis@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf')
-rw-r--r--drivers/scsi/qedf/qedf_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index d9d7a86..8e2a160 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -2456,8 +2456,8 @@ static int qedf_alloc_bdq(struct qedf_ctx *qedf)
}
QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC,
- "BDQ PBL addr=0x%p dma=0x%llx.\n", qedf->bdq_pbl,
- qedf->bdq_pbl_dma);
+ "BDQ PBL addr=0x%p dma=%pad\n",
+ qedf->bdq_pbl, &qedf->bdq_pbl_dma);
/*
* Populate BDQ PBL with physical and virtual address of individual
OpenPOWER on IntegriCloud