{
fprintf(ofp, "LTTng Crash Trace Viewer " VERSION " - " VERSION_NAME "%s\n\n",
GIT_VERSION[0] == '\0' ? "" : " - " GIT_VERSION);
- fprintf(ofp, "usage: lttng [OPTIONS] FILE\n");
+ fprintf(ofp, "usage: lttng-crash [OPTIONS] FILE\n");
fprintf(ofp, "\n");
fprintf(ofp, "Options:\n");
fprintf(ofp, " -V, --version Show version.\n");
readlen = lttng_read(fd_src, buf, src_file_len);
if (readlen < 0) {
PERROR("Error reading input file");
- return -1;
+ ret = -1;
+ goto end;
}
prod_offset = crash_get_field(layout, buf, prod_offset);
ret = extract_trace_recursive(output_subpath,
input_subpath);
+ if (ret) {
+ has_warning = 1;
+ }
break;
}
case DT_REG: