Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1593575 > unrolled thread
| Started by | Joe Perches <joe@perches.com> |
|---|---|
| First post | 2017-03-06 19:40 +0100 |
| Last post | 2017-03-07 04:50 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] scsi: qedf: Use vsprintf extension %pad Joe Perches <joe@perches.com> - 2017-03-06 19:40 +0100
Re: [PATCH] scsi: qedf: Use vsprintf extension %pad "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-03-07 04:50 +0100
| From | Joe Perches <joe@perches.com> |
|---|---|
| Date | 2017-03-06 19:40 +0100 |
| Subject | [PATCH] scsi: qedf: Use vsprintf extension %pad |
| Message-ID | <ti5I7-3Hy-29@gated-at.bofh.it> |
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> --- drivers/scsi/qedf/qedf_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index d9d7a86b5f8b..8e2a160490e6 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 -- 2.10.0.rc2.1.g053435c
[toc] | [next] | [standalone]
| From | "Martin K. Petersen" <martin.petersen@oracle.com> |
|---|---|
| Date | 2017-03-07 04:50 +0100 |
| Message-ID | <tieil-1rh-5@gated-at.bofh.it> |
| In reply to | #1593575 |
>>>>> "Joe" == Joe Perches <joe@perches.com> writes: Joe> Using %llx for a dma_addr_t can lead to format/argument mismatches. Joe> Use %pad and the address of the dma_addr_t instead. Applied to 4.11/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web