diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-11-08 03:48:21 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-11-08 03:51:25 +0100 |
commit | 88727a38324214813a826afda104fbb5d8a599ac (patch) | |
tree | 6ccd7a0a513f6560adf6db93ec48cef0f76c84f8 /monitor/main.c | |
parent | b4c54f97ce9f2b477c97059cbea9082b7a7494a3 (diff) | |
download | bluez-88727a38324214813a826afda104fbb5d8a599ac.tar.gz |
monitor: Add support for user logging priority selection
Diffstat (limited to 'monitor/main.c')
-rw-r--r-- | monitor/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/monitor/main.c b/monitor/main.c index de48db57d..faf629e2b 100644 --- a/monitor/main.c +++ b/monitor/main.c @@ -61,6 +61,7 @@ static void usage(void) "\t-w, --write <file> Save traces in btsnoop format\n" "\t-a, --analyze <file> Analyze traces in btsnoop format\n" "\t-s, --server <socket> Start monitor server socket\n" + "\t-p, --priority <level> Show only priority or lower\n" "\t-i, --index <num> Show only specified controller\n" "\t-t, --time Show time instead of time offset\n" "\t-T, --date Show time and date information\n" @@ -104,7 +105,7 @@ int main(int argc, char *argv[]) for (;;) { int opt; - opt = getopt_long(argc, argv, "r:w:a:s:i:tTSE:vh", + opt = getopt_long(argc, argv, "r:w:a:s:p:i:tTSE:vh", main_options, NULL); if (opt < 0) break; @@ -122,6 +123,9 @@ int main(int argc, char *argv[]) case 's': control_server(optarg); break; + case 'p': + packet_set_priority(optarg); + break; case 'i': if (strlen(optarg) > 3 && !strncmp(optarg, "hci", 3)) str = optarg + 3; |