linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: Gustavo Padovan <gustavo@padovan.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 2/4] monitor: add device filter support
Date: Fri, 11 May 2012 20:13:19 -0300	[thread overview]
Message-ID: <20120511231318.GB9909@samus> (raw)
In-Reply-To: <1336753132-8282-2-git-send-email-gustavo@padovan.org>

Hi Gustavo,

On 13:18 Fri 11 May, Gustavo Padovan wrote:
> -i hciX option will show only data from the specified device
> ---
>  monitor/main.c   |   12 ++++++++++--
>  monitor/packet.c |   10 +++++++++-
>  monitor/packet.h |    2 +-
>  3 files changed, 20 insertions(+), 4 deletions(-)
> 
> diff --git a/monitor/main.c b/monitor/main.c
> index 90e32c5..99b53e9 100644
> --- a/monitor/main.c
> +++ b/monitor/main.c
> @@ -28,6 +28,7 @@
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> +#include <string.h>
>  #include <getopt.h>
>  
>  #include "mainloop.h"
> @@ -52,12 +53,14 @@ static void usage(void)
>  		"Usage:\n");
>  	printf("\tbtmon [options]\n");
>  	printf("options:\n"
> +		"\t-i dev                HCI device\n"
>  		"\t-b, --btsnoop <file>  Save dump in btsnoop format\n"
>  		"\t-h, --help            Show help options\n");
>  }
>  
>  static const struct option main_options[] = {
>  	{ "btsnoop",	required_argument, NULL, 'b'	},
> +	{ "",		required_argument, NULL, 'i'	},

btmgmt is calling this "index", how about using the same long name for
consistency?

[snip]


Cheers,
-- 
Vinicius

  parent reply	other threads:[~2012-05-11 23:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-11 16:18 [PATCH 1/4] monitor: remove extra black line Gustavo Padovan
2012-05-11 16:18 ` [PATCH 2/4] monitor: add device filter support Gustavo Padovan
2012-05-11 16:18   ` [PATCH 3/4] monitor: add command line filter options Gustavo Padovan
2012-05-11 16:18     ` [PATCH 4/4] monitor: show index only when -i is not specified Gustavo Padovan
2012-05-11 23:13   ` Vinicius Costa Gomes [this message]
2012-05-14  2:58   ` [PATCH 2/4] monitor: add device filter support Marcel Holtmann
2012-05-15 23:14     ` Gustavo Padovan
2012-05-16  1:54       ` Marcel Holtmann
2012-05-16 17:51         ` Marcel Holtmann
2012-05-11 16:20 ` [PATCH -v2 1/4] monitor: remove extra blank line Gustavo Padovan
2012-05-11 23:07 ` [PATCH 1/4] monitor: remove extra black line Vinicius Costa Gomes
2012-05-14  2:53 ` Marcel Holtmann

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=20120511231318.GB9909@samus \
    --to=vinicius.gomes@openbossa.org \
    --cc=gustavo@padovan.org \
    --cc=linux-bluetooth@vger.kernel.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).