forked from osmocom/wireshark
If the user specifies -V or -x, turn on print_packet_info (-S) so they actually get some output in case we're also writing to a file. svn path=/trunk/; revision=32486
This commit is contained in:
parent
07b949f87b
commit
a61489c3a5
14
tshark.c
14
tshark.c
|
@ -1194,12 +1194,20 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
case 'V': /* Verbose */
|
case 'V': /* Verbose */
|
||||||
verbose = TRUE;
|
verbose = TRUE;
|
||||||
|
/* The user asked for a verbose output, so let's ensure they get it,
|
||||||
|
* even if they're writing to a file.
|
||||||
|
*/
|
||||||
|
print_packet_info = TRUE;
|
||||||
break;
|
break;
|
||||||
case 'x': /* Print packet data in hex (and ASCII) */
|
case 'x': /* Print packet data in hex (and ASCII) */
|
||||||
print_hex = TRUE;
|
print_hex = TRUE;
|
||||||
break;
|
/* The user asked for hex output, so let's ensure they get it,
|
||||||
|
* even if they're writing to a file.
|
||||||
|
*/
|
||||||
|
print_packet_info = TRUE;
|
||||||
|
break;
|
||||||
case 'X':
|
case 'X':
|
||||||
break;
|
break;
|
||||||
case 'z':
|
case 'z':
|
||||||
/* We won't call the init function for the stat this soon
|
/* We won't call the init function for the stat this soon
|
||||||
as it would disallow MATE's fields (which are registered
|
as it would disallow MATE's fields (which are registered
|
||||||
|
|
Loading…
Reference in New Issue