Changeset 6f9aaee


Ignore:
Timestamp:
06/05/06 19:27:55 (15 years ago)
Author:
Matt Brown <mattb@…>
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:
0e91d5e
Parents:
3b49843
Message:

Improve error checking and actually display an error message when tracemerge
fails to write a packet to the output file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracemerge/tracemerge.c

    r39e141f r6f9aaee  
    126126                        continue;
    127127
    128                 trace_write_packet(output,packet[oldest]);
     128                if (trace_write_packet(output,packet[oldest]) < 0) {
     129                        trace_perror(output, "trace_write_packet");
     130                        break;
     131                }
    129132
    130133                last_ts=oldest_ts;
Note: See TracChangeset for help on using the changeset viewer.