From patchwork Thu Feb 9 08:57:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1546 Return-Path: Received: from latitanza.investici.org (latitanza.investici.org [82.94.249.234]) by open-mesh.org (Postfix) with ESMTPS id 7C52B6008BD for ; Thu, 9 Feb 2012 09:58:10 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@autistici.org; dkim-adsp=pass Received: from [82.94.249.234] (latitanza [82.94.249.234]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id D8EC4981B8; Thu, 9 Feb 2012 08:58:08 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 latitanza.investici.org D8EC4981B8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1328777889; bh=qobwqzpjUgW4rW558Eiy+VOzGMFfGV+w91edR85EgVo=; h=From:To:Cc:Subject:Date:Message-Id; b=t8ZT6c8XH5WLSmuNvXytpl20KPe7hMnGBrKMAvuwrOV6lgiGuJq87gosStLMaYsPP Z27y2s1nxe2EIlRNwD1TH973z2L6yYFo6aRik1aOhQVyEBf0wJ7KKakSehORsT8T02 Pb1Pq4kJAtkR+mnohEJuZgtINK8bfCeSj4kkL7Ug= From: Antonio Quartulli To: b.a.t.m.a.n@lists.open-mesh.org Date: Thu, 9 Feb 2012 09:57:11 +0100 Message-Id: <1328777831-8788-1-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.7.3.4 Subject: [B.A.T.M.A.N.] [PATCH] batctl: fix DBG_ARP log level value X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 08:58:11 -0000 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 --- 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;