diff options
Diffstat (limited to 'drivers/net/bonding/bond_sysfs.c')
-rw-r--r-- | drivers/net/bonding/bond_sysfs.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index a771853219da..f10927639b5c 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c | |||
@@ -1361,17 +1361,14 @@ static ssize_t bonding_show_ad_partner_mac(struct device *d, | |||
1361 | { | 1361 | { |
1362 | int count = 0; | 1362 | int count = 0; |
1363 | struct bonding *bond = to_bond(d); | 1363 | struct bonding *bond = to_bond(d); |
1364 | DECLARE_MAC_BUF(mac); | ||
1364 | 1365 | ||
1365 | if (bond->params.mode == BOND_MODE_8023AD) { | 1366 | if (bond->params.mode == BOND_MODE_8023AD) { |
1366 | struct ad_info ad_info; | 1367 | struct ad_info ad_info; |
1367 | if (!bond_3ad_get_active_agg_info(bond, &ad_info)) { | 1368 | if (!bond_3ad_get_active_agg_info(bond, &ad_info)) { |
1368 | count = sprintf(buf,"%02x:%02x:%02x:%02x:%02x:%02x\n", | 1369 | count = sprintf(buf,"%s\n", |
1369 | ad_info.partner_system[0], | 1370 | print_mac(mac, ad_info.partner_system)) |
1370 | ad_info.partner_system[1], | 1371 | + 1; |
1371 | ad_info.partner_system[2], | ||
1372 | ad_info.partner_system[3], | ||
1373 | ad_info.partner_system[4], | ||
1374 | ad_info.partner_system[5]) + 1; | ||
1375 | } | 1372 | } |
1376 | } | 1373 | } |
1377 | else | 1374 | else |