Skip to content

Commit 5ccdd10

Browse files
Ye Binmartinkpetersen
authored andcommitted
scsi: qla4xxx: Fix inconsistent format argument type
Fix the following warning: [drivers/scsi/qla4xxx/ql4_nx.c:3228]: (warning) %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. Link: https://lore.kernel.org/r/20200930022228.2840587-1-yebin10@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Ye Bin <yebin10@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent fc29f04 commit 5ccdd10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla4xxx/ql4_nx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3226,7 +3226,7 @@ static void qla4_8xxx_uevent_emit(struct scsi_qla_host *ha, u32 code)
32263226

32273227
switch (code) {
32283228
case QL4_UEVENT_CODE_FW_DUMP:
3229-
snprintf(event_string, sizeof(event_string), "FW_DUMP=%ld",
3229+
snprintf(event_string, sizeof(event_string), "FW_DUMP=%lu",
32303230
ha->host_no);
32313231
break;
32323232
default:

0 commit comments

Comments
 (0)