Wireshark-commits: [Wireshark-commits] master-1.10 9540da5: Don't print the packet counter when cap

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 1 Sep 2014 22:50:11 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=9540da540a68571757b5f62ae2a647fa5fa02d94
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-1.10
Repository: wireshark

Commits:

9540da5 by Guy Harris (guy@xxxxxxxxxxxx):

    Don't print the packet counter when capturing if we're also printing
    packet information to a terminal (which we assume is the same terminal
    as the one to which the packet counts are being printed), as they get in
    the way of each other.
    
    Don't print it if we're sending the standard error to a terminal, or if
    -q is specified, either.
    
    Put all the setting of print_packet_counts together; it looks as if the
    default value of print_packet_counts may have been changed to TRUE and
    the code to handle -q wasn't changed to set it to FALSE if -q was
    specified rather than setting it to TRUE if it wasn't specified.
    
    Change-Id: Ifa8fd70c1694235f0ee8cd0e52eb860286329138
    Reviewed-on: https://code.wireshark.org/review/3951
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  646f680   [Automatic manuf, services and enterprise-numbers update for 2014-08-31]
    adds  9540da5   Don't print the packet counter when capturing if we're also printing packet information to a terminal (which we assume is the same terminal as the one to which the packet counts are being printed), as they get in the way of each other.


Summary of changes:
 tshark.c |   46 +++++++++++++++++++++++++++++++++-------------
 1 file changed, 33 insertions(+), 13 deletions(-)