diff options
author | Mattias Andrée <maandree@kth.se> | 2023-12-17 13:23:51 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-12-17 13:23:51 +0100 |
commit | 2e7b4df9f7dfd6a4a6796cd2fcee010ea78427ea (patch) | |
tree | a321a6a0b4bc93cbc1b7704239a675c490383b6d /testutil/to-tracee-endian.c | |
parent | Tell the user whether signals and errors are signed or unsigned (diff) | |
download | libsyscalls-2e7b4df9f7dfd6a4a6796cd2fcee010ea78427ea.tar.gz libsyscalls-2e7b4df9f7dfd6a4a6796cd2fcee010ea78427ea.tar.bz2 libsyscalls-2e7b4df9f7dfd6a4a6796cd2fcee010ea78427ea.tar.xz |
Miscellaneous improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | testutil/to-tracee-endian.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testutil/to-tracee-endian.c b/testutil/to-tracee-endian.c index 4346883..ba97a95 100644 --- a/testutil/to-tracee-endian.c +++ b/testutil/to-tracee-endian.c @@ -78,6 +78,11 @@ main(int argc, char **argv) free(data); goto out; } else if (err) { + fail: + fprintf(stderr, "to-tracee-endian"); + for (argv = &argv[1 - argc]; *argv; argv++) + fprintf(stderr, " %s", *argv); + fprintf(stderr, ": "); libsyscalls_perror(NULL, err); return 1; } @@ -90,8 +95,7 @@ main(int argc, char **argv) free(data); goto out; } else if (err) { - libsyscalls_perror(NULL, err); - return 1; + goto fail; } make_hex(text1, data, datasize); |