[v2] batctl: fix DBG_BLA log level value

Message ID 1328777905-9503-1-git-send-email-ordex@autistici.org (mailing list archive)
State Accepted, archived
Headers

Commit Message

Antonio Quartulli Feb. 9, 2012, 8:58 a.m. UTC
  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 <ordex@autistici.org>
---

Sorry, I made a mistake in the commit subject. Now it is ok.




 sys.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
  

Comments

Marek Lindner Feb. 11, 2012, 11:16 a.m. UTC | #1
On Thursday, February 09, 2012 16:58:25 Antonio Quartulli wrote:
> 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)

Applied in revision e01ed43.

Thanks,
Marek
  

Patch

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;