summaryrefslogtreecommitdiff
path: root/monitor/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-10-30 20:03:06 -0700
committerMarcel Holtmann <marcel@holtmann.org>2012-10-30 20:03:06 -0700
commit18a5dc6cdcf0828443c415eaea82b6834a8f9825 (patch)
treee59990143f111d7e501448ec99f5566aee3063de /monitor/main.c
parent782ceb2428e5522e61cdf55aed8a278d161273a1 (diff)
downloadbluez-18a5dc6cdcf0828443c415eaea82b6834a8f9825.tar.gz
monitor: Store traces with new data link format
Diffstat (limited to 'monitor/main.c')
-rw-r--r--monitor/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/monitor/main.c b/monitor/main.c
index 87e5342e1..ff7cc2d77 100644
--- a/monitor/main.c
+++ b/monitor/main.c
@@ -52,16 +52,16 @@ static void usage(void)
"Usage:\n");
printf("\tbtmon [options]\n");
printf("options:\n"
- "\t-b, --btsnoop <file> Save dump in btsnoop format\n"
- "\t-s, --server <path> Start monitor server socket\n"
- "\t-h, --help Show help options\n");
+ "\t-w, --write <file> Save traces in btsnoop format\n"
+ "\t-s, --server <socket> Start monitor server socket\n"
+ "\t-h, --help Show help options\n");
}
static const struct option main_options[] = {
- { "btsnoop", required_argument, NULL, 'b' },
- { "server", required_argument, NULL, 'r' },
- { "version", no_argument, NULL, 'v' },
- { "help", no_argument, NULL, 'h' },
+ { "write", required_argument, NULL, 'b' },
+ { "server", required_argument, NULL, 'r' },
+ { "version", no_argument, NULL, 'v' },
+ { "help", no_argument, NULL, 'h' },
{ }
};
@@ -75,12 +75,12 @@ int main(int argc, char *argv[])
for (;;) {
int opt;
- opt = getopt_long(argc, argv, "b:s:vh", main_options, NULL);
+ opt = getopt_long(argc, argv, "w:s:vh", main_options, NULL);
if (opt < 0)
break;
switch (opt) {
- case 'b':
+ case 'w':
btsnoop_open(optarg);
break;
case 's':