diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-08-28 23:47:50 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-08-28 23:47:50 +0000 |
commit | 0d9fcad21c78b7cd7bb244c2cdc994813b804574 (patch) | |
tree | 6b72e3bee66634555794494af81313aa1a8ed596 /file.c | |
parent | 165c3724ddf4605f21ca6b5e20680b9424f07646 (diff) |
Stop processing of colorization display filters after first match.
Remove debugging statements from colors.c.
Add blurb about Match Selected and Colorization to man page.
svn path=/trunk/; revision=607
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 28 |
1 files changed, 3 insertions, 25 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.84 1999/08/28 01:51:57 guy Exp $ + * $Id: file.c,v 1.85 1999/08/28 23:47:42 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -489,32 +489,15 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf, const u_char *buf fdata->passed_dfilter = dfilter_apply(cf->dfcode, protocol_tree, cf->pd); else fdata->passed_dfilter = TRUE; - /* Apply color filters. The debuggery can come out real soon! */ -#ifdef DEBUG_COLOR_FILTERS - fprintf(stderr, "Processing %d filters...\n",cf->colors->num_of_filters); - fflush(stderr); -#endif + /* Apply color filters. */ color = -1; for(crow = 0; cf->colors->num_of_filters && crow < cf->colors->num_of_filters; crow++) { -#ifdef DEBUG_COLOR_FILTERS - fprintf(stderr, "Does it match filter %s (%d)? ", - get_color_filter_name(cf,crow),crow); - fflush(stderr); -#endif if(dfilter_apply(color_filter(cf,crow)->c_colorfilter, protocol_tree, cf->pd)){ color = crow; -#ifdef DEBUG_COLOR_FILTERS - fprintf(stderr,"yes\n"); -#endif + break; } -#ifdef DEBUG_COLOR_FILTERS - else { - fprintf(stderr,"no\n") ; - fflush(stderr); - } -#endif } proto_tree_free(protocol_tree); @@ -582,11 +565,6 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf, const u_char *buf } -#ifdef DEBUG_COLOR_FILTERS - fprintf(stderr,"Now row %d\n", row+2); - fflush(stderr); -#endif - /* If this was the selected packet, remember the row it's in, so we can re-select it. ("selected_packet" is 0-origin, as it's a GList index; "count", however, is 1-origin.) */ |