• Arnd Bergmann's avatar
    scsi: lpfc: nvmet_fc: fix format string · 9094367a
    Arnd Bergmann authored
    The lpfc_nvmeio_data() tracing helper always takes a format string and
    three additional arguments. The latest caller has a format string with
    only two integer arguments, causing this harmless warning:
    
    drivers/scsi/lpfc/lpfc_nvmet.c: In function 'lpfc_nvmet_xmt_fcp_release':
    drivers/scsi/lpfc/lpfc_nvmet.c:802:25: error: too many arguments for format [-Werror=format-extra-args]
      lpfc_nvmeio_data(phba, "NVMET FCP FREE: xri x%x ste %d\n", ctxp->oxid,
    
    We could add a dummy argument here, but it seems reasonable to print
    the 'abort' flag as the third argument.
    
    Fixes: 19b58d94 ("nvmet_fc: add req_release to lldd api")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-by: default avatarJames Smart <james.smart@broadcom.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    9094367a
lpfc_nvmet.c 76 KB