All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix inconsistent of format with argument type
@ 2020-09-30  2:25 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
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Ye Bin @ 2020-09-30  2:25 UTC (permalink / raw)
  To: njavali, GR-QLogic-Storage-Upstream, linux-scsi; +Cc: Ye Bin

Ye Bin (3):
  scsi: qla2xxx: Fix inconsistent of format with argument type in
    tcm_qla2xxx.c
  scsi: qla2xxx: Fix inconsistent of format with argument type in
    qla_os.c
  scsi: qla2xxx: Fix inconsistent of format with argument type in
    qla_dbg.c

 drivers/scsi/qla2xxx/qla_dbg.c     | 2 +-
 drivers/scsi/qla2xxx/qla_os.c      | 4 ++--
 drivers/scsi/qla2xxx/tcm_qla2xxx.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.25.4


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 1/3] scsi: qla2xxx: Fix inconsistent of format with argument type in tcm_qla2xxx.c
  2020-09-30  2:25 [PATCH 0/3] Fix inconsistent of format with argument type Ye Bin
@ 2020-09-30  2:25 ` 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
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 12+ messages in thread
From: Ye Bin @ 2020-09-30  2:25 UTC (permalink / raw)
  To: njavali, GR-QLogic-Storage-Upstream, linux-scsi; +Cc: Ye Bin, Hulk Robot

Fix follow warnings:
[drivers/scsi/qla2xxx/tcm_qla2xxx.c:884]: (warning) %u in format string (no. 1)
	requires 'unsigned int' but the argument type is 'signed int'.
[drivers/scsi/qla2xxx/tcm_qla2xxx.c:885]: (warning) %u in format string (no. 1)
	requires 'unsigned int' but the argument type is 'signed int'.
[drivers/scsi/qla2xxx/tcm_qla2xxx.c:886]: (warning) %u in format string (no. 1)
	requires 'unsigned int' but the argument type is 'signed int'.
[drivers/scsi/qla2xxx/tcm_qla2xxx.c:887]: (warning) %u in format string (no. 1)
	requires 'unsigned int' but the argument type is 'signed int'.
[drivers/scsi/qla2xxx/tcm_qla2xxx.c:888]: (warning) %u in format string (no. 1)
	requires 'unsigned int' but the argument type is 'signed int'.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
---
 drivers/scsi/qla2xxx/tcm_qla2xxx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c b/drivers/scsi/qla2xxx/tcm_qla2xxx.c
index 44bfe162654a..61017acd3458 100644
--- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c
+++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c
@@ -850,7 +850,7 @@ static ssize_t tcm_qla2xxx_tpg_attrib_##name##_show(			\
 	struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg,		\
 			struct tcm_qla2xxx_tpg, se_tpg);		\
 									\
-	return sprintf(page, "%u\n", tpg->tpg_attrib.name);	\
+	return sprintf(page, "%d\n", tpg->tpg_attrib.name);	\
 }									\
 									\
 static ssize_t tcm_qla2xxx_tpg_attrib_##name##_store(			\
-- 
2.25.4


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_os.c
  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-09-30  2:25 ` Ye Bin
  2020-10-01 11:04   ` 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
                   ` (2 subsequent siblings)
  4 siblings, 2 replies; 12+ messages in thread
From: Ye Bin @ 2020-09-30  2:25 UTC (permalink / raw)
  To: njavali, GR-QLogic-Storage-Upstream, linux-scsi; +Cc: Ye Bin, Hulk Robot

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


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 3/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_dbg.c
  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-09-30  2:25 ` [PATCH 2/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_os.c Ye Bin
@ 2020-09-30  2:25 ` 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
  4 siblings, 2 replies; 12+ messages in thread
From: Ye Bin @ 2020-09-30  2:25 UTC (permalink / raw)
  To: njavali, GR-QLogic-Storage-Upstream, linux-scsi; +Cc: Ye Bin, Hulk Robot

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


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* RE: [EXT] [PATCH 1/3] scsi: qla2xxx: Fix inconsistent of format with argument type in tcm_qla2xxx.c
  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   ` Nilesh Javali
  2020-10-01 16:47   ` Himanshu Madhani
  1 sibling, 0 replies; 12+ messages in thread
From: Nilesh Javali @ 2020-10-01 11:03 UTC (permalink / raw)
  To: Ye Bin, GR-QLogic-Storage-Upstream, linux-scsi; +Cc: Hulk Robot



> -----Original Message-----
> From: Ye Bin <yebin10@huawei.com>
> Sent: Wednesday, September 30, 2020 7:55 AM
> To: Nilesh Javali <njavali@marvell.com>; GR-QLogic-Storage-Upstream <GR-
> QLogic-Storage-Upstream@marvell.com>; linux-scsi@vger.kernel.org
> Cc: Ye Bin <yebin10@huawei.com>; Hulk Robot <hulkci@huawei.com>
> Subject: [EXT] [PATCH 1/3] scsi: qla2xxx: Fix inconsistent of format with
> argument type in tcm_qla2xxx.c
> 
> External Email
> 
> ----------------------------------------------------------------------
> Fix follow warnings:
> [drivers/scsi/qla2xxx/tcm_qla2xxx.c:884]: (warning) %u in format string (no.
> 1)
> 	requires 'unsigned int' but the argument type is 'signed int'.
> [drivers/scsi/qla2xxx/tcm_qla2xxx.c:885]: (warning) %u in format string (no.
> 1)
> 	requires 'unsigned int' but the argument type is 'signed int'.
> [drivers/scsi/qla2xxx/tcm_qla2xxx.c:886]: (warning) %u in format string (no.
> 1)
> 	requires 'unsigned int' but the argument type is 'signed int'.
> [drivers/scsi/qla2xxx/tcm_qla2xxx.c:887]: (warning) %u in format string (no.
> 1)
> 	requires 'unsigned int' but the argument type is 'signed int'.
> [drivers/scsi/qla2xxx/tcm_qla2xxx.c:888]: (warning) %u in format string (no.
> 1)
> 	requires 'unsigned int' but the argument type is 'signed int'.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Ye Bin <yebin10@huawei.com>
> ---
>  drivers/scsi/qla2xxx/tcm_qla2xxx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c
> b/drivers/scsi/qla2xxx/tcm_qla2xxx.c
> index 44bfe162654a..61017acd3458 100644
> --- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c
> +++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c
> @@ -850,7 +850,7 @@ static ssize_t
> tcm_qla2xxx_tpg_attrib_##name##_show(			\
>  	struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg,		\
>  			struct tcm_qla2xxx_tpg, se_tpg);		\
>  									\
> -	return sprintf(page, "%u\n", tpg->tpg_attrib.name);	\
> +	return sprintf(page, "%d\n", tpg->tpg_attrib.name);	\
>  }									\
>  									\
>  static ssize_t tcm_qla2xxx_tpg_attrib_##name##_store(
> 	\
> --
> 2.25.4

Ye Bin,
Thanks for the patches.

Reviewed-by: Nilesh Javali <njavali@marvell.com>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [PATCH 2/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_os.c
  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
  1 sibling, 0 replies; 12+ messages in thread
From: Nilesh Javali @ 2020-10-01 11:04 UTC (permalink / raw)
  To: Ye Bin, GR-QLogic-Storage-Upstream, linux-scsi; +Cc: Hulk Robot



> -----Original Message-----
> From: Ye Bin <yebin10@huawei.com>
> Sent: Wednesday, September 30, 2020 7:55 AM
> To: Nilesh Javali <njavali@marvell.com>; GR-QLogic-Storage-Upstream <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
> 
> 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

Reviewed-by: Nilesh Javali <njavali@marvell.com>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [PATCH 3/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_dbg.c
  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
  1 sibling, 0 replies; 12+ messages in thread
From: Nilesh Javali @ 2020-10-01 11:05 UTC (permalink / raw)
  To: Ye Bin, GR-QLogic-Storage-Upstream, linux-scsi; +Cc: Hulk Robot



> -----Original Message-----
> From: Ye Bin <yebin10@huawei.com>
> Sent: Wednesday, September 30, 2020 7:55 AM
> To: Nilesh Javali <njavali@marvell.com>; GR-QLogic-Storage-Upstream <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
> 
> 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

Reviewed-by: Nilesh Javali <njavali@marvell.com>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 2/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_os.c
  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
  1 sibling, 0 replies; 12+ messages in thread
From: Himanshu Madhani @ 2020-10-01 16:46 UTC (permalink / raw)
  To: Ye Bin; +Cc: Nilesh Javali, GR-QLogic-Storage-Upstream, linux-scsi, Hulk Robot



> On Sep 29, 2020, at 9:25 PM, Ye Bin <yebin10@huawei.com> wrote:
> 
> 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
> 

Looks good.

Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>

--
Himanshu Madhani	 Oracle Linux Engineering


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 3/3] scsi: qla2xxx: Fix inconsistent of format with argument type in qla_dbg.c
  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
  1 sibling, 0 replies; 12+ messages in thread
From: Himanshu Madhani @ 2020-10-01 16:46 UTC (permalink / raw)
  To: Ye Bin; +Cc: Nilesh Javali, GR-QLogic-Storage-Upstream, linux-scsi, Hulk Robot



> On Sep 29, 2020, at 9:25 PM, Ye Bin <yebin10@huawei.com> wrote:
> 
> 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
> 

Looks good.

Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>

--
Himanshu Madhani	 Oracle Linux Engineering


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/3] scsi: qla2xxx: Fix inconsistent of format with argument type in tcm_qla2xxx.c
  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
  1 sibling, 0 replies; 12+ messages in thread
From: Himanshu Madhani @ 2020-10-01 16:47 UTC (permalink / raw)
  To: Ye Bin; +Cc: Nilesh Javali, GR-QLogic-Storage-Upstream, linux-scsi, Hulk Robot



> On Sep 29, 2020, at 9:25 PM, Ye Bin <yebin10@huawei.com> wrote:
> 
> Fix follow warnings:
> [drivers/scsi/qla2xxx/tcm_qla2xxx.c:884]: (warning) %u in format string (no. 1)
> 	requires 'unsigned int' but the argument type is 'signed int'.
> [drivers/scsi/qla2xxx/tcm_qla2xxx.c:885]: (warning) %u in format string (no. 1)
> 	requires 'unsigned int' but the argument type is 'signed int'.
> [drivers/scsi/qla2xxx/tcm_qla2xxx.c:886]: (warning) %u in format string (no. 1)
> 	requires 'unsigned int' but the argument type is 'signed int'.
> [drivers/scsi/qla2xxx/tcm_qla2xxx.c:887]: (warning) %u in format string (no. 1)
> 	requires 'unsigned int' but the argument type is 'signed int'.
> [drivers/scsi/qla2xxx/tcm_qla2xxx.c:888]: (warning) %u in format string (no. 1)
> 	requires 'unsigned int' but the argument type is 'signed int'.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Ye Bin <yebin10@huawei.com>
> ---
> drivers/scsi/qla2xxx/tcm_qla2xxx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c b/drivers/scsi/qla2xxx/tcm_qla2xxx.c
> index 44bfe162654a..61017acd3458 100644
> --- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c
> +++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c
> @@ -850,7 +850,7 @@ static ssize_t tcm_qla2xxx_tpg_attrib_##name##_show(			\
> 	struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg,		\
> 			struct tcm_qla2xxx_tpg, se_tpg);		\
> 									\
> -	return sprintf(page, "%u\n", tpg->tpg_attrib.name);	\
> +	return sprintf(page, "%d\n", tpg->tpg_attrib.name);	\
> }									\
> 									\
> static ssize_t tcm_qla2xxx_tpg_attrib_##name##_store(			\
> -- 
> 2.25.4
> 

Looks good.

Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>

--
Himanshu Madhani	 Oracle Linux Engineering


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 0/3] Fix inconsistent of format with argument type
  2020-09-30  2:25 [PATCH 0/3] Fix inconsistent of format with argument type Ye Bin
                   ` (2 preceding siblings ...)
  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-02 23:03 ` Martin K. Petersen
  2020-10-07  3:48 ` Martin K. Petersen
  4 siblings, 0 replies; 12+ messages in thread
From: Martin K. Petersen @ 2020-10-02 23:03 UTC (permalink / raw)
  To: Ye Bin; +Cc: njavali, GR-QLogic-Storage-Upstream, linux-scsi


Ye,

> Ye Bin (3):
>   scsi: qla2xxx: Fix inconsistent of format with argument type in
>     tcm_qla2xxx.c
>   scsi: qla2xxx: Fix inconsistent of format with argument type in
>     qla_os.c
>   scsi: qla2xxx: Fix inconsistent of format with argument type in
>     qla_dbg.c

Applied to 5.10/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 0/3] Fix inconsistent of format with argument type
  2020-09-30  2:25 [PATCH 0/3] Fix inconsistent of format with argument type Ye Bin
                   ` (3 preceding siblings ...)
  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
  4 siblings, 0 replies; 12+ messages in thread
From: Martin K. Petersen @ 2020-10-07  3:48 UTC (permalink / raw)
  To: njavali, GR-QLogic-Storage-Upstream, linux-scsi, Ye Bin
  Cc: Martin K . Petersen

On Wed, 30 Sep 2020 10:25:12 +0800, Ye Bin wrote:

> Ye Bin (3):
>   scsi: qla2xxx: Fix inconsistent of format with argument type in
>     tcm_qla2xxx.c
>   scsi: qla2xxx: Fix inconsistent of format with argument type in
>     qla_os.c
>   scsi: qla2xxx: Fix inconsistent of format with argument type in
>     qla_dbg.c
> 
> [...]

Applied to 5.10/scsi-queue, thanks!

[1/3] scsi: qla2xxx: Fix inconsistent format argument type in tcm_qla2xxx.c
      https://git.kernel.org/mkp/scsi/c/7f5523f69709
[2/3] scsi: qla2xxx: Fix inconsistent format argument type in qla_os.c
      https://git.kernel.org/mkp/scsi/c/250bd00923c7
[3/3] scsi: qla2xxx: Fix inconsistent format argument type in qla_dbg.c
      https://git.kernel.org/mkp/scsi/c/72e813d9a1b7

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-10-07  3:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [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

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.