Changeset 849


Ignore:
Timestamp:
06/05/06 19:48:57 (7 years ago)
Author:
mglb1
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
  • trunk/tools/tracemerge/tracemerge.c

    r848 r849  
    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.