scsi: qla2xxx: Fix inconsistent format argument type in qla_dbg.c
authorYe Bin <yebin10@huawei.com>
Wed, 30 Sep 2020 02:25:15 +0000 (10:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 2 Oct 2020 23:01:18 +0000 (19:01 -0400)
Fix the following warning:

[drivers/scsi/qla2xxx/qla_dbg.c:2451]: (warning) %ld in format string (no. 4)
requires 'long' but the argument type is 'unsigned long'.

Link: https://lore.kernel.org/r/20200930022515.2862532-4-yebin10@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_dbg.c

index 3690402..898b8d4 100644 (file)
@@ -2449,7 +2449,7 @@ static void ql_dbg_prefix(char *pbuf, int pbuf_size,
                const struct pci_dev *pdev = vha->hw->pdev;
 
                /* <module-name> [<dev-name>]-<msg-id>:<host>: */
-               snprintf(pbuf, pbuf_size, "%s [%s]-%04x:%ld: ", QL_MSGHDR,
+               snprintf(pbuf, pbuf_size, "%s [%s]-%04x:%lu: ", QL_MSGHDR,
                         dev_name(&(pdev->dev)), msg_id, vha->host_no);
        } else {
                /* <module-name> [<dev-name>]-<msg-id>: : */