diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-10-30 20:03:06 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-10-30 20:03:06 -0700 |
commit | 18a5dc6cdcf0828443c415eaea82b6834a8f9825 (patch) | |
tree | e59990143f111d7e501448ec99f5566aee3063de /monitor/main.c | |
parent | 782ceb2428e5522e61cdf55aed8a278d161273a1 (diff) | |
download | bluez-18a5dc6cdcf0828443c415eaea82b6834a8f9825.tar.gz |
monitor: Store traces with new data link format
Diffstat (limited to 'monitor/main.c')
-rw-r--r-- | monitor/main.c | 18 |
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': |