-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
This patch would make the output consistent with the "batctl tg" output by sending no output if there is no entry to be displayed.
The intention is to make it easier to parse the output using console facilities. Of course you could use grep -v "^No" to filter out this line, but that would be ugly and somewhat harsh for low performance machines such as routers and big tables (I haven't done benchmarks in this regard). This also helps the intention of the -H patch (https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2012-October/008143.html).
Relevant ticket: http://www.open-mesh.org/issues/165
Signed-off-by: Moritz Warning <moritzwarning at web.de> diff --git a/originator.c b/originator.c index 8c32cf1..d559a77 100644 - --- a/originator.c +++ b/originator.c @@ -467,9 +467,6 @@ next: rcu_read_unlock(); }
- - if (batman_count == 0) - - seq_printf(seq, "No batman nodes in range ...\n"); - - out: if (primary_if) batadv_hardif_free_ref(primary_if);