From: Antonio Quartulli <ordex@autistici.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH] batctl: fix DBG_ARP log level value
Date: Thu, 9 Feb 2012 09:57:11 +0100 [thread overview]
Message-ID: <1328777831-8788-1-git-send-email-ordex@autistici.org> (raw)
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>
---
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
next reply other threads:[~2012-02-09 8:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-09 8:57 Antonio Quartulli [this message]
2012-02-09 8:58 ` [B.A.T.M.A.N.] [PATCHv2] batctl: fix DBG_BLA log level value Antonio Quartulli
2012-02-11 11:16 ` Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1328777831-8788-1-git-send-email-ordex@autistici.org \
--to=ordex@autistici.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).