diff mbox series

[ethtool,2/2] netlink: fix copy-paste error in rtm_link_summary()

Message ID 20200925070527.1001190-2-ivecera@redhat.com
State New
Headers show
Series None | expand

Commit Message

Ivan Vecera Sept. 25, 2020, 7:05 a.m. UTC
Fixes: bdfffab54933 ("netlink: message format descriptions for rtnetlink")

Cc: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
---
 netlink/prettymsg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michal Kubecek Sept. 28, 2020, 3:38 p.m. UTC | #1
On Fri, Sep 25, 2020 at 09:05:27AM +0200, Ivan Vecera wrote:
> Fixes: bdfffab54933 ("netlink: message format descriptions for rtnetlink")
> 
> Cc: Michal Kubecek <mkubecek@suse.cz>
> Signed-off-by: Ivan Vecera <ivecera@redhat.com>
> ---

Applied, thank you.

Michal

>  netlink/prettymsg.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/netlink/prettymsg.c b/netlink/prettymsg.c
> index 9e62bebe615e..f992dcaf071f 100644
> --- a/netlink/prettymsg.c
> +++ b/netlink/prettymsg.c
> @@ -202,7 +202,7 @@ static void rtm_link_summary(const struct ifinfomsg *ifinfo)
>  		printf(" ifindex=%d", ifinfo->ifi_index);
>  	if (ifinfo->ifi_flags)
>  		printf(" flags=0x%x", ifinfo->ifi_flags);
> -	if (ifinfo->ifi_flags)
> +	if (ifinfo->ifi_change)
>  		printf(" change=0x%x", ifinfo->ifi_change);
>  }
>  
> -- 
> 2.26.2
>
diff mbox series

Patch

diff --git a/netlink/prettymsg.c b/netlink/prettymsg.c
index 9e62bebe615e..f992dcaf071f 100644
--- a/netlink/prettymsg.c
+++ b/netlink/prettymsg.c
@@ -202,7 +202,7 @@  static void rtm_link_summary(const struct ifinfomsg *ifinfo)
 		printf(" ifindex=%d", ifinfo->ifi_index);
 	if (ifinfo->ifi_flags)
 		printf(" flags=0x%x", ifinfo->ifi_flags);
-	if (ifinfo->ifi_flags)
+	if (ifinfo->ifi_change)
 		printf(" change=0x%x", ifinfo->ifi_change);
 }