Improve verify-syscalls printout
@@ -406,7 +406,7 @@ int main(int argc, char *argv[])
errx(EXIT_FAILURE, "open was never called on '%s'", check_pathname);
// Dump statistics
- fprintf(stderr, "verify-syscalls report\n");
+ fprintf(stderr, "-- verify-syscalls report --\n");
fprintf(stderr, "Calls to write(): %d\n", write_call_count);
if (write_call_count > 0) {
fprintf(stderr, " Bytes written: %d\n", write_call_bytes);
@@ -421,11 +421,12 @@ int main(int argc, char *argv[])
}
if (verify_last_write_str && last_offset_written != verify_last_write)
- maybe_err("last block written wasn't %lu. It was %lu", verify_last_write, last_offset_written);
+ maybe_err("Last block written wasn't at offset %lu. It was at %lu!", verify_last_write, last_offset_written);
int exit_status = WEXITSTATUS(status);
if (exit_status)
fprintf(stderr, "%s returned %d\n", check_pathname, exit_status);
+ fprintf(stderr, "----------------------------\n");
// Pass on the exit status.
return exit_status;
