* [B.A.T.M.A.N.] [PATCH] batctl: correct batctl ll output
@ 2011-11-13 11:50 Antonio Quartull
2011-11-13 18:45 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartull @ 2011-11-13 11:50 UTC (permalink / raw)
To: b.a.t.m.a.n
Since batctl has moved to a human-readable loglevel name, either 'batctl ll'
output should be coherent to this change. This patch correct it by substituting
the old numbers with the human-readable strings
Signed-off-by: Antonio Quartull <ordex@autistici.org>
---
sys.c | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/sys.c b/sys.c
index bddaaa3..e510bee 100644
--- a/sys.c
+++ b/sys.c
@@ -237,14 +237,15 @@ int handle_loglevel(char *mesh_iface, int argc, char **argv)
log_level = strtol(line_ptr, (char **) NULL, 10);
- printf("[%c] %s (%d)\n", (!log_level) ? 'x' : ' ',
- "all debug output disabled", 0);
- printf("[%c] %s (%d)\n", (log_level & 1) ? 'x' : ' ',
- "messages related to routing / flooding / broadcasting", 1);
- printf("[%c] %s (%d)\n", (log_level & 2) ? 'x' : ' ',
- "messages related to route added / changed / deleted", 2);
- printf("[%c] %s (%d)\n", (log_level & 4) ? 'x' : ' ',
- "messages related to translation table operations", 4);
+ printf("[%c] %s (%s)\n", (!log_level) ? 'x' : ' ',
+ "all debug output disabled", "none");
+ printf("[%c] %s (%s)\n", (log_level & 1) ? 'x' : ' ',
+ "messages related to routing / flooding / broadcasting",
+ "batman");
+ printf("[%c] %s (%s)\n", (log_level & 2) ? 'x' : ' ',
+ "messages related to route added / changed / deleted", "routes");
+ printf("[%c] %s (%s)\n", (log_level & 4) ? 'x' : ' ',
+ "messages related to translation table operations", "tt");
out:
if (errno == ENOENT)
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] batctl: correct batctl ll output
2011-11-13 11:50 [B.A.T.M.A.N.] [PATCH] batctl: correct batctl ll output Antonio Quartull
@ 2011-11-13 18:45 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2011-11-13 18:45 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Sunday, November 13, 2011 19:50:26 Antonio Quartull wrote:
> Since batctl has moved to a human-readable loglevel name, either 'batctl
> ll' output should be coherent to this change. This patch correct it by
> substituting the old numbers with the human-readable strings
Applied in revision 631d566.
Thanks,
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-13 18:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-13 11:50 [B.A.T.M.A.N.] [PATCH] batctl: correct batctl ll output Antonio Quartull
2011-11-13 18:45 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox