From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Sun, 7 Oct 2012 03:36:23 +0800 References: <1349551832-22283-1-git-send-email-ordex@autistici.org> <1349551832-22283-2-git-send-email-ordex@autistici.org> In-Reply-To: <1349551832-22283-2-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201210070336.23832.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv2 2/3] batctl: add support for the DAT log level 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: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Sunday, October 07, 2012 03:30:31 Antonio Quartulli wrote: > @@ -327,6 +330,8 @@ int handle_loglevel(char *mesh_iface, int argc, char **argv) > "messages related to translation table operations", "tt"); > printf("[%c] %s (%s)\n", (log_level & BIT(3)) ? 'x' : ' ', > "messages related to bridge loop avoidance", "bla"); > + printf("[%c] %s (%s)\n", (log_level & 16) ? 'x' : ' ', > + "messages related to arp snooping and distributetd arp table", "dat"); > > out: > free(path_buff); How about using BIT(4) like in the rest of the patch ? Cheers, Marek