aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/gateway_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/gateway_client.c')
-rw-r--r--net/batman-adv/gateway_client.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/net/batman-adv/gateway_client.c b/net/batman-adv/gateway_client.c
index 27649e85f3f6..a0876eae09d2 100644
--- a/net/batman-adv/gateway_client.c
+++ b/net/batman-adv/gateway_client.c
@@ -592,15 +592,16 @@ static int batadv_write_buffer_text(struct batadv_priv *bat_priv,
592 592
593 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); 593 curr_gw = batadv_gw_get_selected_gw_node(bat_priv);
594 594
595 ret = seq_printf(seq, "%s %pM (%3i) %pM [%10s]: %u.%u/%u.%u MBit\n", 595 seq_printf(seq, "%s %pM (%3i) %pM [%10s]: %u.%u/%u.%u MBit\n",
596 (curr_gw == gw_node ? "=>" : " "), 596 (curr_gw == gw_node ? "=>" : " "),
597 gw_node->orig_node->orig, 597 gw_node->orig_node->orig,
598 router_ifinfo->bat_iv.tq_avg, router->addr, 598 router_ifinfo->bat_iv.tq_avg, router->addr,
599 router->if_incoming->net_dev->name, 599 router->if_incoming->net_dev->name,
600 gw_node->bandwidth_down / 10, 600 gw_node->bandwidth_down / 10,
601 gw_node->bandwidth_down % 10, 601 gw_node->bandwidth_down % 10,
602 gw_node->bandwidth_up / 10, 602 gw_node->bandwidth_up / 10,
603 gw_node->bandwidth_up % 10); 603 gw_node->bandwidth_up % 10);
604 ret = seq_has_overflowed(seq);
604 605
605 if (curr_gw) 606 if (curr_gw)
606 batadv_gw_node_free_ref(curr_gw); 607 batadv_gw_node_free_ref(curr_gw);