Changeset ec0f8f1


Ignore:
Timestamp:
01/19/10 11:59:23 (11 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:
400fe5e
Parents:
7f2612c
Message:

Provide more sophisticated (or possibly any) error handling

Location:
tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tools/tracemerge/tracemerge.c

    ra8f2692 rec0f8f1  
    147147                                if (ret<0) {
    148148                                        /* Error */
    149                                         perror(argv[i+2]);
     149                                        trace_perror(input[i], "%s", argv[i+2]);
    150150                                        trace_destroy(input[i]);
    151151                                        input[i]=NULL;
  • tools/tracereplay/tracereplay.c

    r0f2e206 rec0f8f1  
    355355                trace_destroy_packet(new);
    356356        }
     357        if (trace_is_err(trace)) {
     358                trace_perror(trace,"%s",uri);
     359        }
    357360        free(uri);
    358361        trace_destroy(trace);
  • tools/tracertstats/tracertstats.c

    r67e9e2e rec0f8f1  
    184184        }
    185185        report_results(ts,count,bytes);
     186
     187        if (trace_is_err(trace))
     188                trace_perror(trace,"%s",uri);
    186189
    187190        trace_destroy(trace);
  • tools/tracestats/tracestats.c

    ra8f2692 rec0f8f1  
    152152        totcount+=count;
    153153        totbytes+=bytes;
     154
     155        if (trace_is_err(trace))
     156                trace_perror(trace,"%s",uri);
    154157
    155158        trace_destroy(trace);
Note: See TracChangeset for help on using the changeset viewer.