Skip to contentSkip to conversation

scsi: qla4xxx: Fix Fix inconsistent of format with argument type in ql4_nx.c

PATCH Applied Ye Bin 2 participants 3 messages Sep 30, 2020 – Oct 13, 2020

Subsystems (2)
lore
Share & tools
lore

Ye Bin

author
#0 lore raw

PATCH 1/1 scsi: qla4xxx: Fix Fix inconsistent of format with argument type in ql4_nx.c

Fix follow warning:
[drivers/scsi/qla4xxx/ql4_nx.c:3228]: (warning) %ld in format string (no. 1)
requires 'long' but the argument type is 'unsigned long'.

---
 drivers/scsi/qla4xxx/ql4_nx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla4xxx/ql4_nx.c +1 -1
index fd3aabb6a190..f1767b21076f 100644
@@ -3225,7 +3225,7 @@ static void qla4_8xxx_uevent_emit(struct scsi_qla_host *ha, u32 code)
 
 	switch (code) {
 	case QL4_UEVENT_CODE_FW_DUMP:
-		snprintf(event_string, sizeof(event_string), "FW_DUMP=%ld",
+		snprintf(event_string, sizeof(event_string), "FW_DUMP=%lu",
 			 ha->host_no);
 		break;
 	default:
Signature · 1 line
2.25.4
#1 lore raw

Ye,

Quoted 3 lines

Fix follow warning:
[drivers/scsi/qla4xxx/ql4_nx.c:3228]: (warning) %ld in format string (no. 1)
requires 'long' but the argument type is 'unsigned long'.

Applied to 5.10/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
#2 lore raw
In reply to Ye Bin
Quoted 3 lines · Ye Bin

Fix follow warning:
[drivers/scsi/qla4xxx/ql4_nx.c:3228]: (warning) %ld in format string (no. 1)
requires 'long' but the argument type is 'unsigned long'.

Applied to 5.10/scsi-queue, thanks!

[1/1] scsi: qla4xxx: Fix inconsistent format argument type

      https://git.kernel.org/mkp/scsi/c/5ccdd101351d
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering