X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-crash%2Flttng-crash.c;h=4f1efe96dada1b00671309b1fe39358ce4bed411;hb=309fc9bf0c244ed47c4d7c3a47119e596a40eb73;hp=f50b0f86b26abf709a9e8047133312599084ecf5;hpb=29786dfa05a2c732917260a34c63fe93326c31bb;p=lttng-tools.git diff --git a/src/bin/lttng-crash/lttng-crash.c b/src/bin/lttng-crash/lttng-crash.c index f50b0f86b..4f1efe96d 100644 --- a/src/bin/lttng-crash/lttng-crash.c +++ b/src/bin/lttng-crash/lttng-crash.c @@ -209,7 +209,7 @@ static void usage(FILE *ofp) { 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"); @@ -766,7 +766,8 @@ int copy_crash_data(const struct lttng_crash_layout *layout, int fd_dest, 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);