From patchwork Mon Feb 27 10:43:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1574 Return-Path: Received: from confino.investici.org (investici.nine.ch [217.150.252.179]) by open-mesh.org (Postfix) with ESMTPS id C3B7C60085B for ; Mon, 27 Feb 2012 11:44:46 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@autistici.org; dkim-adsp=pass Received: from [217.150.252.179] (confino [217.150.252.179]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id 8BE96C8695; Mon, 27 Feb 2012 10:44:44 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 confino.investici.org 8BE96C8695 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1330339485; bh=Ft+tf2j/QNCv9SoMtNQIASh1cgfPgnrWgxcA+mlLbic=; h=From:To:Cc:Subject:Date:Message-Id; b=ocraykfhC5Jv118j67DgKHFhgHjkxrsARVOhDjZjdOLv2IE+A9pLMu4ptqUR1cdYi 23heQhtWgsEKXwTMzHLr9gKz3ToKDEackp4U5YxAgQ9FrQ6R8qovzm6Sfje0hQl9Vl /QaPJlXZEHkCk+ZcTMsdmjft6AwZ3SkgNTU2feJg= From: Antonio Quartulli To: b.a.t.m.a.n@lists.open-mesh.org Date: Mon, 27 Feb 2012 11:43:36 +0100 Message-Id: <1330339416-25833-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 'all' loglevel 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: Mon, 27 Feb 2012 10:44:47 -0000 After having added the "bla" log level, the numeric value for "all" is now 15, not 7. Reported-by: Marek Lindner Signed-off-by: Antonio Quartulli --- sys.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sys.c b/sys.c index 0b7ddf7..0b4cac3 100644 --- a/sys.c +++ b/sys.c @@ -214,7 +214,7 @@ int handle_loglevel(char *mesh_iface, int argc, char **argv) log_level = 0; break; } else if (strcmp(argv[i], "all") == 0) { - log_level = 7; + log_level = 15; break; } else if (strcmp(argv[i], "batman") == 0) log_level |= (1 << 0);