summaryrefslogtreecommitdiff
path: root/drivers/scsi/qla2xxx/qla_attr.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-03-04 20:39:09 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-03-06 19:26:46 -0500
commitf996861be108f6152d60d7357301697c3309c77f (patch)
tree4f3b55ed7e76d1487ebd126d8facbf7e9464c4ca /drivers/scsi/qla2xxx/qla_attr.c
parent352b205a3bac6bb68f27228768a5c12294e650bf (diff)
scsi: lpfc: fix 32-bit format string warning
On 32-bit architectures, we see a warning when %ld is used to print a size_t: In file included from drivers/scsi/lpfc/lpfc_init.c:62: drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_new_io_buf': drivers/scsi/lpfc/lpfc_logmsg.h:62:45: error: format '%ld' expects argument of type 'long int', but argument 5 has type 'unsigned int' [-Werror=format=] This is harmless, but portable code should just use %zd to avoid the warning. Fixes: 0794d601d174 ("scsi: lpfc: Implement common IO buffers between NVME and SCSI") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
0 files changed, 0 insertions, 0 deletions