[B.A.T.M.A.N.] [PATCH] batctl: fix DBG_ARP log level value
From: Antonio Quartulli <hidden>
Date: 2012-02-09 08:57:11
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Antonio Quartulli <hidden>
Date: 2012-02-09 08:57:11
Subsystem:
the rest · Maintainer:
Linus Torvalds
When "batctl ll" is launched with argument "bla", the wrong log_level value (1 << 4) is written into sysfs instead of the correct (1 << 3) Signed-off-by: Antonio Quartulli <redacted> --- sys.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sys.c b/sys.c
index 6cf4714..eeb7005 100644
--- a/sys.c
+++ b/sys.c@@ -223,7 +223,7 @@ int handle_loglevel(char *mesh_iface, int argc, char **argv) else if (strcmp(argv[i], "tt") == 0) log_level |= (1 << 2); else if (strcmp(argv[i], "bla") == 0) - log_level |= (1 << 4); + log_level |= (1 << 3); else { log_level_usage(); goto out;
--
1.7.3.4