naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0070-iplink-bond_slave-fix-ad_actor-partner_oper_port_sta.patch

049c96
From 35fdf5a241f8111eba6b81e9f736ac9df1e07bc4 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Tue, 23 Feb 2016 18:28:00 +0100
049c96
Subject: [PATCH] iplink: bond_slave: fix ad_actor/partner_oper_port_state
049c96
 output
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1269528
049c96
Upstream Status: iproute2.git commit e6c38e2c59c92
049c96
049c96
commit e6c38e2c59c922229ca615b6f913523dd6ee7c24
049c96
Author: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
049c96
Date:   Mon Feb 8 17:13:58 2016 +0100
049c96
049c96
    iplink: bond_slave: fix ad_actor/partner_oper_port_state output
049c96
049c96
    It seems that I've made a mistake when I exported these, instead of a
049c96
    space in the end I've put a newline character which is wrong and breaks
049c96
    the single line output.
049c96
049c96
    Fixes: 7d6bc3b87abad ("bonding: export 3ad actor and partner port state")
049c96
    Reported-by: Sam Tannous <stannous@cumulusnetworks.com>
049c96
    Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
049c96
---
049c96
 ip/iplink_bond_slave.c | 4 ++--
049c96
 1 file changed, 2 insertions(+), 2 deletions(-)
049c96
049c96
diff --git a/ip/iplink_bond_slave.c b/ip/iplink_bond_slave.c
049c96
index 9b569b1..2f3364e 100644
049c96
--- a/ip/iplink_bond_slave.c
049c96
+++ b/ip/iplink_bond_slave.c
049c96
@@ -80,11 +80,11 @@ static void bond_slave_print_opt(struct link_util *lu, FILE *f, struct rtattr *t
049c96
 			rta_getattr_u16(tb[IFLA_BOND_SLAVE_AD_AGGREGATOR_ID]));
049c96
 
049c96
 	if (tb[IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE])
049c96
-		fprintf(f, "ad_actor_oper_port_state %d\n",
049c96
+		fprintf(f, "ad_actor_oper_port_state %d ",
049c96
 			rta_getattr_u8(tb[IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE]));
049c96
 
049c96
 	if (tb[IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE])
049c96
-		fprintf(f, "ad_partner_oper_port_state %d\n",
049c96
+		fprintf(f, "ad_partner_oper_port_state %d ",
049c96
 			rta_getattr_u16(tb[IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE]));
049c96
 }
049c96
 
049c96
-- 
049c96
1.8.3.1
049c96