linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IB/mlx4: correct order of variables in log
@ 2015-09-28  2:08 Wengang Wang
       [not found] ` <1443406123-15234-1-git-send-email-wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Wengang Wang @ 2015-09-28  2:08 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA

There is a mis-order in mlx4 log. Fix it.

Signed-off-by: Wengang Wang <wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
---
 drivers/net/ethernet/mellanox/mlx4/cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/mellanox/mlx4/cmd.c b/drivers/net/ethernet/mellanox/mlx4/cmd.c
index 0a32020..150fbb3 100644
--- a/drivers/net/ethernet/mellanox/mlx4/cmd.c
+++ b/drivers/net/ethernet/mellanox/mlx4/cmd.c
@@ -1010,7 +1010,7 @@ static int mlx4_MAD_IFC_wrapper(struct mlx4_dev *dev, int slave,
 		if (!(smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED &&
 		      smp->method == IB_MGMT_METHOD_GET) || network_view) {
 			mlx4_err(dev, "Unprivileged slave %d is trying to execute a Subnet MGMT MAD, class 0x%x, method 0x%x, view=%s for attr 0x%x. Rejecting\n",
-				 slave, smp->method, smp->mgmt_class,
+				 slave, smp->mgmt_class, smp->method,
 				 network_view ? "Network" : "Host",
 				 be16_to_cpu(smp->attr_id));
 			return -EPERM;
-- 
2.1.0

--
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] IB/mlx4: correct order of variables in log
       [not found] ` <1443406123-15234-1-git-send-email-wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
@ 2015-10-08  3:30   ` Wengang Wang
  2015-10-08  4:51   ` Or Gerlitz
  2015-10-08  4:52   ` Or Gerlitz
  2 siblings, 0 replies; 5+ messages in thread
From: Wengang Wang @ 2015-10-08  3:30 UTC (permalink / raw)
  To: Wengang Wang, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi,

Any comment on this patch?

thanks,
wengang

在 2015年09月28日 10:08, Wengang Wang 写道:
> There is a mis-order in mlx4 log. Fix it.
>
> Signed-off-by: Wengang Wang <wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> ---
>   drivers/net/ethernet/mellanox/mlx4/cmd.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/mellanox/mlx4/cmd.c b/drivers/net/ethernet/mellanox/mlx4/cmd.c
> index 0a32020..150fbb3 100644
> --- a/drivers/net/ethernet/mellanox/mlx4/cmd.c
> +++ b/drivers/net/ethernet/mellanox/mlx4/cmd.c
> @@ -1010,7 +1010,7 @@ static int mlx4_MAD_IFC_wrapper(struct mlx4_dev *dev, int slave,
>   		if (!(smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED &&
>   		      smp->method == IB_MGMT_METHOD_GET) || network_view) {
>   			mlx4_err(dev, "Unprivileged slave %d is trying to execute a Subnet MGMT MAD, class 0x%x, method 0x%x, view=%s for attr 0x%x. Rejecting\n",
> -				 slave, smp->method, smp->mgmt_class,
> +				 slave, smp->mgmt_class, smp->method,
>   				 network_view ? "Network" : "Host",
>   				 be16_to_cpu(smp->attr_id));
>   			return -EPERM;

--
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] IB/mlx4: correct order of variables in log
       [not found] ` <1443406123-15234-1-git-send-email-wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
  2015-10-08  3:30   ` Wengang Wang
@ 2015-10-08  4:51   ` Or Gerlitz
  2015-10-08  4:52   ` Or Gerlitz
  2 siblings, 0 replies; 5+ messages in thread
From: Or Gerlitz @ 2015-10-08  4:51 UTC (permalink / raw)
  To: Wengang Wang, linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 9/28/2015 5:08 AM, Wengang Wang wrote:
> There is a mis-order in mlx4 log. Fix it.
>
> Signed-off-by: Wengang Wang<wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
Acked-by: Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
--
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] IB/mlx4: correct order of variables in log
       [not found] ` <1443406123-15234-1-git-send-email-wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
  2015-10-08  3:30   ` Wengang Wang
  2015-10-08  4:51   ` Or Gerlitz
@ 2015-10-08  4:52   ` Or Gerlitz
       [not found]     ` <5615F6AB.8050309-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  2 siblings, 1 reply; 5+ messages in thread
From: Or Gerlitz @ 2015-10-08  4:52 UTC (permalink / raw)
  To: Wengang Wang, linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 9/28/2015 5:08 AM, Wengang Wang wrote:
> There is a mis-order in mlx4 log. Fix it.
>
> Signed-off-by: Wengang Wang<wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
I wanted to ack it, but wait...

We want commits to our driver to start with Capital letter so please
resubmit with this  title

IB/mlx4: Use correct order of variables in log message

You can add Acked-by: Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
--
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] IB/mlx4: correct order of variables in log
       [not found]     ` <5615F6AB.8050309-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
@ 2015-10-08  4:58       ` Wengang Wang
  0 siblings, 0 replies; 5+ messages in thread
From: Wengang Wang @ 2015-10-08  4:58 UTC (permalink / raw)
  To: Or Gerlitz, linux-rdma-u79uwXL29TY76Z2rM5mHXA

Thanks Or.
I will resend the revised(title) the patch with your Ack.

thanks,
wengang

在 2015年10月08日 12:52, Or Gerlitz 写道:
> On 9/28/2015 5:08 AM, Wengang Wang wrote:
>> There is a mis-order in mlx4 log. Fix it.
>>
>> Signed-off-by: Wengang Wang<wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> I wanted to ack it, but wait...
>
> We want commits to our driver to start with Capital letter so please
> resubmit with this  title
>
> IB/mlx4: Use correct order of variables in log message
>
> You can add Acked-by: Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

--
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

end of thread, other threads:[~2015-10-08  4:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-28  2:08 [PATCH] IB/mlx4: correct order of variables in log Wengang Wang
     [not found] ` <1443406123-15234-1-git-send-email-wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2015-10-08  3:30   ` Wengang Wang
2015-10-08  4:51   ` Or Gerlitz
2015-10-08  4:52   ` Or Gerlitz
     [not found]     ` <5615F6AB.8050309-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-10-08  4:58       ` Wengang Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).