aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2018-06-22 15:11:48 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-07-02 13:08:21 +0100
commit9d7fd0a19b7340afa2782cc73a64cf618bec3200 (patch)
treecdc29d49bb92616e388394e5da9329776a60cd13
parent882464c9c919965ae2eb56430896406ab0448fcc (diff)
risu: add zlib indication to help text
This is a simple aide-memoir as it can be tricky to determine this with a simple statically compiled binary. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180622141205.16306-6-alex.bennee@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--risu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/risu.c b/risu.c
index 616fc33..c684c90 100644
--- a/risu.c
+++ b/risu.c
@@ -39,6 +39,9 @@ size_t signal_count;
#ifdef HAVE_ZLIB
#include <zlib.h>
gzFile gz_trace_file;
+#define TRACE_TYPE "compressed"
+#else
+#define TRACE_TYPE "uncompressed"
#endif
sigjmp_buf jmpbuf;
@@ -273,7 +276,7 @@ void usage(void)
fprintf(stderr, "between master and apprentice risu processes.\n\n");
fprintf(stderr, "Options:\n");
fprintf(stderr, " --master Be the master (server)\n");
- fprintf(stderr, " -t, --trace=FILE Record/playback trace file\n");
+ fprintf(stderr, " -t, --trace=FILE Record/playback " TRACE_TYPE " trace file\n");
fprintf(stderr,
" -h, --host=HOST Specify master host machine (apprentice only)"
"\n");