hcidump: Just default to verbose parsing and remove the option

This commit is contained in:
Marcel Holtmann 2010-07-12 19:28:21 -03:00
parent 4fd47e9f91
commit c89eff9be0
2 changed files with 2 additions and 7 deletions

View File

@ -102,9 +102,6 @@ Extract PPP traffic with pppdump format.
.BR -A ", " "\-\^\-audio=" "<file>" .BR -A ", " "\-\^\-audio=" "<file>"
Extract SCO audio data. Extract SCO audio data.
.TP .TP
.BR -V ", " "\-\^\-verbose"
Enables a more verbose decoding of every packet.
.TP
.BR -Y ", " "\-\^\-novendor" .BR -Y ", " "\-\^\-novendor"
Don't display any vendor commands or events and don't show any pin code or link key in plain text. Don't display any vendor commands or events and don't show any pin code or link key in plain text.
.TP .TP

View File

@ -1000,10 +1000,6 @@ int main(int argc, char *argv[])
audio_file = strdup(optarg); audio_file = strdup(optarg);
break; break;
case 'V':
flags |= DUMP_VERBOSE;
break;
case 'Y': case 'Y':
flags |= DUMP_NOVENDOR; flags |= DUMP_NOVENDOR;
break; break;
@ -1046,11 +1042,13 @@ int main(int argc, char *argv[])
switch (mode) { switch (mode) {
case PARSE: case PARSE:
flags |= DUMP_VERBOSE;
init_parser(flags, filter, defpsm, defcompid, pppdump_fd, audio_fd); init_parser(flags, filter, defpsm, defcompid, pppdump_fd, audio_fd);
process_frames(device, open_socket(device, flags), -1, flags); process_frames(device, open_socket(device, flags), -1, flags);
break; break;
case READ: case READ:
flags |= DUMP_VERBOSE;
init_parser(flags, filter, defpsm, defcompid, pppdump_fd, audio_fd); init_parser(flags, filter, defpsm, defcompid, pppdump_fd, audio_fd);
read_dump(open_file(dump_file, mode, flags)); read_dump(open_file(dump_file, mode, flags));
break; break;