Changeset 0e91d5e for tools


Ignore:
Timestamp:
06/05/06 19:48:57 (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:
3e66b30
Parents:
6f9aaee
Message:
  • Consume an argument after initialising the output trace otherwise we end up

opening the output trace for reading as well!

  • Improve error messages to distinguish between errors opening the output trace and errors opening the input traces
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracemerge/tracemerge.c

    r6f9aaee r0e91d5e  
    5454                usage(argv[0]);
    5555
    56         output=trace_create_output(argv[optind]);
     56        output=trace_create_output(argv[optind++]);
    5757        if (trace_is_err_output(output)) {
    58                 trace_perror_output(output,"trace_create");
     58                trace_perror_output(output,"trace_create_output");
    5959                return 1;
    6060        }
    6161        if (trace_start_output(output)==-1) {
    62                 trace_perror_output(output,"trace_start");
     62                trace_perror_output(output,"trace_start_output");
    6363                return 1;
    6464        }
Note: See TracChangeset for help on using the changeset viewer.