From: Ye Bin <yebin10@huawei.com>
To: <njavali@marvell.com>, <GR-QLogic-Storage-Upstream@marvell.com>,
<linux-scsi@vger.kernel.org>
Cc: Ye Bin <yebin10@huawei.com>, Hulk Robot <hulkci@huawei.com>
Subject: [PATCH 2/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_os.c
Date: Wed, 30 Sep 2020 10:25:14 +0800 [thread overview]
Message-ID: <20200930022515.2862532-3-yebin10@huawei.com> (raw)
In-Reply-To: <20200930022515.2862532-1-yebin10@huawei.com>
Fix follow warning:
[drivers/scsi/qla2xxx/qla_os.c:4882]: (warning) %ld in format string (no. 2)
requires 'long' but the argument type is 'unsigned long'.
[drivers/scsi/qla2xxx/qla_os.c:5011]: (warning) %ld in format string (no. 1)
requires 'long' but the argument type is 'unsigned long'.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
---
drivers/scsi/qla2xxx/qla_os.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 910a6ed0ccc7..473a02603697 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -4879,7 +4879,7 @@ struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *sht,
}
INIT_DELAYED_WORK(&vha->scan.scan_work, qla_scan_work_fn);
- sprintf(vha->host_str, "%s_%ld", QLA2XXX_DRIVER_NAME, vha->host_no);
+ sprintf(vha->host_str, "%s_%lu", QLA2XXX_DRIVER_NAME, vha->host_no);
ql_dbg(ql_dbg_init, vha, 0x0041,
"Allocated the host=%p hw=%p vha=%p dev_name=%s",
vha->host, vha->hw, vha,
@@ -5008,7 +5008,7 @@ qla2x00_uevent_emit(struct scsi_qla_host *vha, u32 code)
switch (code) {
case QLA_UEVENT_CODE_FW_DUMP:
- snprintf(event_string, sizeof(event_string), "FW_DUMP=%ld",
+ snprintf(event_string, sizeof(event_string), "FW_DUMP=%lu",
vha->host_no);
break;
default:
--
2.25.4
next prev parent reply other threads:[~2020-09-30 2:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-30 2:25 [PATCH 0/3] Fix inconsistent of format with argument type Ye Bin
2020-09-30 2:25 ` [PATCH 1/3] scsi: qla2xxx: Fix inconsistent of format with argument type in tcm_qla2xxx.c Ye Bin
2020-10-01 11:03 ` [EXT] " Nilesh Javali
2020-10-01 16:47 ` Himanshu Madhani
2020-09-30 2:25 ` Ye Bin [this message]
2020-10-01 11:04 ` [PATCH 2/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_os.c Nilesh Javali
2020-10-01 16:46 ` Himanshu Madhani
2020-09-30 2:25 ` [PATCH 3/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_dbg.c Ye Bin
2020-10-01 11:05 ` Nilesh Javali
2020-10-01 16:46 ` Himanshu Madhani
2020-10-02 23:03 ` [PATCH 0/3] Fix inconsistent of format with argument type Martin K. Petersen
2020-10-07 3:48 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200930022515.2862532-3-yebin10@huawei.com \
--to=yebin10@huawei.com \
--cc=GR-QLogic-Storage-Upstream@marvell.com \
--cc=hulkci@huawei.com \
--cc=linux-scsi@vger.kernel.org \
--cc=njavali@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.