Ignore:
Timestamp:
03/17/06 13:23:36 (15 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
ed636fb4
Parents:
72cc9cc
Message:

libtrace3ification
Better error reporting
Avoid debugging crud

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracesplit/tracesplit.c

    rd56089a r5ad7ad0  
    106106        input=trace_create(argv[optind]);
    107107
     108        trace_start(input);
     109
    108110        while(1) {
    109111                if (trace_read_packet(input,packet)<1) {
     
    164166                        }
    165167                        output=trace_create_output(buffer);
     168                        trace_start_output(output);
    166169                        free(buffer);
    167170                }
    168171
    169                 trace_write_packet(output,packet);
     172                if (trace_write_packet(output,packet)==-1) {
     173                        trace_perror_output(output,"write_packet");
     174                        break;
     175                }
    170176        }
    171177
Note: See TracChangeset for help on using the changeset viewer.