Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit 99d4fd728fdcad78eb7bb5533f3b6fa3560a399a Author: Antonio Quartulli ordex@autistici.org Date: Thu Aug 9 02:35:43 2012 +0200
batctl: use the BIT macro instead of constant values
Signed-off-by: Antonio Quartulli ordex@autistici.org
99d4fd728fdcad78eb7bb5533f3b6fa3560a399a 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: