* [B.A.T.M.A.N.] [PATCH] batctl: use the BIT macro instead of constant values
@ 2012-08-09 0:35 Antonio Quartulli
2012-08-22 0:07 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2012-08-09 0:35 UTC (permalink / raw)
To: b.a.t.m.a.n
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
sys.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys.c b/sys.c
index e40ddcd..6f94483 100644
--- a/sys.c
+++ b/sys.c
@@ -318,14 +318,14 @@ int handle_loglevel(char *mesh_iface, int argc, char **argv)
printf("[%c] %s (%s)\n", (!log_level) ? 'x' : ' ',
"all debug output disabled", "none");
- printf("[%c] %s (%s)\n", (log_level & 1) ? 'x' : ' ',
+ printf("[%c] %s (%s)\n", (log_level & BIT(0)) ? 'x' : ' ',
"messages related to routing / flooding / broadcasting",
"batman");
- printf("[%c] %s (%s)\n", (log_level & 2) ? 'x' : ' ',
+ printf("[%c] %s (%s)\n", (log_level & BIT(1)) ? 'x' : ' ',
"messages related to route added / changed / deleted", "routes");
- printf("[%c] %s (%s)\n", (log_level & 4) ? 'x' : ' ',
+ printf("[%c] %s (%s)\n", (log_level & BIT(2)) ? 'x' : ' ',
"messages related to translation table operations", "tt");
- printf("[%c] %s (%s)\n", (log_level & 8) ? 'x' : ' ',
+ printf("[%c] %s (%s)\n", (log_level & BIT(3)) ? 'x' : ' ',
"messages related to bridge loop avoidance", "bla");
out:
--
1.7.9.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] batctl: use the BIT macro instead of constant values
2012-08-09 0:35 [B.A.T.M.A.N.] [PATCH] batctl: use the BIT macro instead of constant values Antonio Quartulli
@ 2012-08-22 0:07 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2012-08-22 0:07 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Thursday, August 09, 2012 02:35:43 Antonio Quartulli wrote:
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
> sys.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Applied in revision 99d4fd7.
Thanks,
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-22 0:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-09 0:35 [B.A.T.M.A.N.] [PATCH] batctl: use the BIT macro instead of constant values Antonio Quartulli
2012-08-22 0:07 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).