From patchwork Thu Feb 9 08:58:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1517 Return-Path: Received: from latitanza.investici.org (latitanza.investici.org [82.94.249.234]) by open-mesh.org (Postfix) with ESMTPS id 7907B6008D8 for ; Thu, 9 Feb 2012 09:59:22 +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 D3C50981B8; Thu, 9 Feb 2012 08:59:21 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 latitanza.investici.org D3C50981B8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1328777962; bh=tiOMxuMNbBopAEF4DYcYTLykr5LHHiXUFzKxtlJjEUQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=uWWtbR2+fxYgqujE/c9dwd1kHxYzjV1ogFspzp61bmgBH0n0Qa/ovfkQrJe/TVTvg DNqHTFeHNs495G0CF5FvuraES7NHy1Vg3WACGaAV59HXcY+rHTCmzjEHAQWv8ZPRI3 nmTIh163t/isrbNMO1FgjikLp21+z2xs9O7mmBqk= From: Antonio Quartulli To: b.a.t.m.a.n@lists.open-mesh.org Date: Thu, 9 Feb 2012 09:58:25 +0100 Message-Id: <1328777905-9503-1-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1328777831-8788-1-git-send-email-ordex@autistici.org> References: <1328777831-8788-1-git-send-email-ordex@autistici.org> Subject: [B.A.T.M.A.N.] [PATCHv2] batctl: fix DBG_BLA 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:59:22 -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 --- Sorry, I made a mistake in the commit subject. Now it is ok. 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;