All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] IB/mad: Add port_num to error message
@ 2017-01-19 14:48 Yuval Shaia
       [not found] ` <1484837311-13206-1-git-send-email-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Yuval Shaia @ 2017-01-19 14:48 UTC (permalink / raw)
  To: dledford-H+wXaHxf7aLQT0dZR+AlfA,
	sean.hefty-ral2JQCrhuEAvxtiuMwx3w,
	hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w,
	sagi-NQWnxTmZq1alnMjI0IkVqw, ira.weiny-ral2JQCrhuEAvxtiuMwx3w,
	bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ,
	yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA, markb-VPRAkNaXOzVWk0Htik3J/w,
	leon-DgEjT+Ai2ygdnm+yROfE0A, linux-rdma-u79uwXL29TY76Z2rM5mHXA

Print the invalid port number to ease troubleshooting.

Signed-off-by: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
---
v0 -> v1:
	* Fix typo in commit header
---
 drivers/infiniband/core/mad.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c
index a009f71..57f231f 100644
--- a/drivers/infiniband/core/mad.c
+++ b/drivers/infiniband/core/mad.c
@@ -316,7 +316,9 @@ struct ib_mad_agent *ib_register_mad_agent(struct ib_device *device,
 	/* Validate device and port */
 	port_priv = ib_get_mad_port(device, port_num);
 	if (!port_priv) {
-		dev_notice(&device->dev, "ib_register_mad_agent: Invalid port\n");
+		dev_notice(&device->dev,
+			   "ib_register_mad_agent: Invalid port %d\n",
+			   port_num);
 		ret = ERR_PTR(-ENODEV);
 		goto error1;
 	}
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH v1] IB/mad: Add port_num to error message
       [not found] ` <1484837311-13206-1-git-send-email-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
@ 2017-01-19 15:10   ` Leon Romanovsky
  2017-01-19 15:40   ` Johannes Thumshirn
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Leon Romanovsky @ 2017-01-19 15:10 UTC (permalink / raw)
  To: Yuval Shaia
  Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
	sean.hefty-ral2JQCrhuEAvxtiuMwx3w,
	hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w,
	sagi-NQWnxTmZq1alnMjI0IkVqw, ira.weiny-ral2JQCrhuEAvxtiuMwx3w,
	bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ,
	markb-VPRAkNaXOzVWk0Htik3J/w, linux-rdma-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 439 bytes --]

On Thu, Jan 19, 2017 at 04:48:31PM +0200, Yuval Shaia wrote:
> Print the invalid port number to ease troubleshooting.
>
> Signed-off-by: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> ---
> v0 -> v1:
> 	* Fix typo in commit header
> ---
>  drivers/infiniband/core/mad.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH v1] IB/mad: Add port_num to error message
       [not found] ` <1484837311-13206-1-git-send-email-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
  2017-01-19 15:10   ` Leon Romanovsky
@ 2017-01-19 15:40   ` Johannes Thumshirn
  2017-01-19 17:05   ` Weiny, Ira
  2017-01-24 19:22   ` Doug Ledford
  3 siblings, 0 replies; 5+ messages in thread
From: Johannes Thumshirn @ 2017-01-19 15:40 UTC (permalink / raw)
  To: Yuval Shaia
  Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
	sean.hefty-ral2JQCrhuEAvxtiuMwx3w,
	hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w,
	sagi-NQWnxTmZq1alnMjI0IkVqw, ira.weiny-ral2JQCrhuEAvxtiuMwx3w,
	bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ,
	markb-VPRAkNaXOzVWk0Htik3J/w, leon-DgEjT+Ai2ygdnm+yROfE0A,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

On Thu, Jan 19, 2017 at 04:48:31PM +0200, Yuval Shaia wrote:
> Print the invalid port number to ease troubleshooting.
> 
> Signed-off-by: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> ---
> v0 -> v1:
> 	* Fix typo in commit header
> ---

Somehow liked the typo :-D
Anyways,
Reviewed-by: Johannes Thumshirn <jthumshirn-l3A5Bk7waGM@public.gmane.org>

-- 
Johannes Thumshirn                                          Storage
jthumshirn-l3A5Bk7waGM@public.gmane.org                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* RE: [PATCH v1] IB/mad: Add port_num to error message
       [not found] ` <1484837311-13206-1-git-send-email-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
  2017-01-19 15:10   ` Leon Romanovsky
  2017-01-19 15:40   ` Johannes Thumshirn
@ 2017-01-19 17:05   ` Weiny, Ira
  2017-01-24 19:22   ` Doug Ledford
  3 siblings, 0 replies; 5+ messages in thread
From: Weiny, Ira @ 2017-01-19 17:05 UTC (permalink / raw)
  To: Yuval Shaia, dledford-H+wXaHxf7aLQT0dZR+AlfA, Hefty, Sean,
	hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w,
	sagi-NQWnxTmZq1alnMjI0IkVqw,
	bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ,
	markb-VPRAkNaXOzVWk0Htik3J/w, leon-DgEjT+Ai2ygdnm+yROfE0A,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

> Print the invalid port number to ease troubleshooting.
> 
> Signed-off-by: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>

Reviewed-by: Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

> ---
> v0 -> v1:
> 	* Fix typo in commit header
> ---
>  drivers/infiniband/core/mad.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c index
> a009f71..57f231f 100644
> --- a/drivers/infiniband/core/mad.c
> +++ b/drivers/infiniband/core/mad.c
> @@ -316,7 +316,9 @@ struct ib_mad_agent *ib_register_mad_agent(struct
> ib_device *device,
>  	/* Validate device and port */
>  	port_priv = ib_get_mad_port(device, port_num);
>  	if (!port_priv) {
> -		dev_notice(&device->dev, "ib_register_mad_agent: Invalid
> port\n");
> +		dev_notice(&device->dev,
> +			   "ib_register_mad_agent: Invalid port %d\n",
> +			   port_num);
>  		ret = ERR_PTR(-ENODEV);
>  		goto error1;
>  	}
> --
> 1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH v1] IB/mad: Add port_num to error message
       [not found] ` <1484837311-13206-1-git-send-email-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
                     ` (2 preceding siblings ...)
  2017-01-19 17:05   ` Weiny, Ira
@ 2017-01-24 19:22   ` Doug Ledford
  3 siblings, 0 replies; 5+ messages in thread
From: Doug Ledford @ 2017-01-24 19:22 UTC (permalink / raw)
  To: Yuval Shaia, sean.hefty-ral2JQCrhuEAvxtiuMwx3w,
	hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w,
	sagi-NQWnxTmZq1alnMjI0IkVqw, ira.weiny-ral2JQCrhuEAvxtiuMwx3w,
	bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ,
	markb-VPRAkNaXOzVWk0Htik3J/w, leon-DgEjT+Ai2ygdnm+yROfE0A,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

On Thu, 2017-01-19 at 16:48 +0200, Yuval Shaia wrote:
> Print the invalid port number to ease troubleshooting.
> 
> Signed-off-by: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> ---
> v0 -> v1:
> 	* Fix typo in commit header

I chuckled ;-)

Applied to -next area, thanks.

-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2017-01-24 19:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-19 14:48 [PATCH v1] IB/mad: Add port_num to error message Yuval Shaia
     [not found] ` <1484837311-13206-1-git-send-email-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-01-19 15:10   ` Leon Romanovsky
2017-01-19 15:40   ` Johannes Thumshirn
2017-01-19 17:05   ` Weiny, Ira
2017-01-24 19:22   ` Doug Ledford

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.