All of lore.kernel.org
 help / color / mirror / Atom feed
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 3/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_dbg.c
Date: Wed, 30 Sep 2020 10:25:15 +0800	[thread overview]
Message-ID: <20200930022515.2862532-4-yebin10@huawei.com> (raw)
In-Reply-To: <20200930022515.2862532-1-yebin10@huawei.com>

Fix follow warning:
[drivers/scsi/qla2xxx/qla_dbg.c:2451]: (warning) %ld in format string (no. 4)
	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_dbg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c
index 1434789c9919..bb7431912d41 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.c
+++ b/drivers/scsi/qla2xxx/qla_dbg.c
@@ -2448,7 +2448,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>: : */
-- 
2.25.4


  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 ` [PATCH 2/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_os.c Ye Bin
2020-10-01 11:04   ` Nilesh Javali
2020-10-01 16:46   ` Himanshu Madhani
2020-09-30  2:25 ` Ye Bin [this message]
2020-10-01 11:05   ` [PATCH 3/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_dbg.c 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-4-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.