diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-12-17 21:11:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-12-17 21:11:25 +0000 |
commit | 4e67fd6bf61cca5474549703028c231d184f1e50 (patch) | |
tree | 7aaebbcccc4fcfa4865a67a920dc9969d383d515 /tethereal.c | |
parent | 87a30b5b32798de45f34616fed5eb3a4d68c6c85 (diff) | |
download | wireshark-4e67fd6bf61cca5474549703028c231d184f1e50.tar.gz wireshark-4e67fd6bf61cca5474549703028c231d184f1e50.tar.bz2 wireshark-4e67fd6bf61cca5474549703028c231d184f1e50.zip |
Set "print_args" regardless of whether we're printing the packet detail
or not - it's used if we're printing the hex data.
svn path=/trunk/; revision=9324
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tethereal.c b/tethereal.c index 937d0d1814..64bd1344ec 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.210 2003/12/11 01:13:32 guy Exp $ + * $Id: tethereal.c,v 1.211 2003/12/17 21:11:25 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2537,14 +2537,14 @@ wtap_dispatch_cb_print(guchar *user, const struct wtap_pkthdr *phdr, #ifdef HAVE_LIBPCAP ld.packet_count++; #endif + print_args.to_file = TRUE; + print_args.format = print_format; + print_args.print_summary = !verbose; + print_args.print_hex = print_hex; + print_args.print_dissections = print_dissections_expanded; + print_args.print_range = print_range_all_captured; if (verbose) { /* Print the information in the protocol tree. */ - print_args.to_file = TRUE; - print_args.format = print_format; - print_args.print_summary = FALSE; - print_args.print_hex = print_hex; - print_args.print_dissections = print_dissections_expanded; - print_args.print_range = print_range_all_captured; proto_tree_print(&print_args, edt, stdout); if (!print_hex) { /* "print_hex_data()" will put out a leading blank line, as well |