diff options
| author | Arnd Bergmann <[email protected]> | 2016-10-17 14:35:46 +0200 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2016-11-08 17:29:53 -0500 |
| commit | efe583c6d3cdafbeb0c039cd5d0f88fd26637065 (patch) | |
| tree | a17ed8d6d4d15f6329738adcad45e4c80d9a2e07 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 5d5a51d205ba841b88d758deb6ff537fb754adbc (diff) | |
scsi: lpfc: Use %zd format string for size_t
A recent bugfix introduced a harmless warning in the lpfc driver:
drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_write_firmware':
drivers/scsi/lpfc/lpfc_logmsg.h:56:45: error: format '%ld' expects argument of type 'long int', but argument 9 has type 'size_t {aka const unsigned int}' [-Werror=format=]
'size_t' is always the same width as 'long' in the kernel, but the
compiler doesn't know that. The %z modifier is what the standard expects
to be used here, and this shuts up the warning.
Fixes: 679053c651fb ("scsi: lpfc: Fix fw download on SLI-4 FC adapters")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Acked-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions