diff options
author | John Zhuge <jzhuge@cloudera.com> | 2016-03-30 23:33:17 (GMT) |
---|---|---|
committer | John Zhuge <jzhuge@cloudera.com> | 2016-04-01 14:07:25 (GMT) |
commit | cf6652f9b91593b5d48588e4ed8105669375f110 (patch) | |
tree | e2bed7b09b33f71424566a2a0b585e2ad39c5057 /programs | |
parent | 60ba8638cdd255eef787a222374bb8b11779e970 (diff) | |
download | lz4-cf6652f9b91593b5d48588e4ed8105669375f110.zip lz4-cf6652f9b91593b5d48588e4ed8105669375f110.tar.gz lz4-cf6652f9b91593b5d48588e4ed8105669375f110.tar.bz2 |
lz4cli: print library version
Diffstat (limited to 'programs')
-rw-r--r-- | programs/lz4cli.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c index 505191b..2d491df 100644 --- a/programs/lz4cli.c +++ b/programs/lz4cli.c @@ -59,6 +59,7 @@ #include <stdlib.h> /* exit, calloc, free */ #include <string.h> /* strcmp, strlen */ #include "bench.h" /* BMK_benchFile, BMK_SetNbIterations, BMK_SetBlocksize, BMK_SetPause */ +#include "lz4.h" /* LZ4_versionString */ #include "lz4io.h" /* LZ4IO_compressFilename, LZ4IO_decompressFilename, LZ4IO_compressMultipleFilenames */ @@ -85,12 +86,14 @@ /***************************** * Constants ******************************/ -#define COMPRESSOR_NAME "LZ4 command line interface" +#define COMPRESSOR_NAME "LZ4 CLI" #ifndef LZ4_VERSION # define LZ4_VERSION "r128" #endif #define AUTHOR "Yann Collet" -#define WELCOME_MESSAGE "*** %s %i-bits %s, by %s (%s) ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_VERSION, AUTHOR, __DATE__ +#define WELCOME_MESSAGE "*** %s %i-bits %s (lib %s), by %s ***\n", \ + COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_VERSION, \ + LZ4_versionString(), AUTHOR #define LZ4_EXTENSION ".lz4" #define LZ4CAT "lz4cat" #define UNLZ4 "unlz4" |