diff options
Diffstat (limited to 'programs')
-rw-r--r-- | programs/lz4.1 | 14 | ||||
-rw-r--r-- | programs/lz4io.c | 8 | ||||
-rw-r--r-- | programs/util.h | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/programs/lz4.1 b/programs/lz4.1 index fcc7980..1d9238d 100644 --- a/programs/lz4.1 +++ b/programs/lz4.1 @@ -141,11 +141,13 @@ Benchmark mode, using # compression level. . .SS "Operation modifiers" .TP -.B \-1 - fast compression (default) -.TP -.B \-9 - high compression +.B \-# + compression level, with # being any value from 1 to 16. + Higher values trade compression speed for compression ratio. + Values above 16 are considered the same as 16. + Recommended values are 1 for fast compression (default), and 9 for high compression. + Speed/compression trade-off will vary depending on data to compress. + Decompression speed remains fast at all settings. .TP .BR \-f ", " --[no-]force @@ -180,7 +182,7 @@ for files that have not been compressed with By default, the second filename is used as the destination filename for the compressed file. With .B -m -, you can specify any number of input filenames. Each of them will be compressed +, it is possible to specify any number of input filenames. Each of them will be compressed independently, and the resulting name of each compressed file will be .B filename.lz4 . diff --git a/programs/lz4io.c b/programs/lz4io.c index 725d3a8..00576c2 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -258,7 +258,7 @@ static FILE* LZ4IO_openSrcFile(const char* srcFileName) SET_BINARY_MODE(stdin); } else { f = fopen(srcFileName, "rb"); - if ( f==NULL ) DISPLAYLEVEL(1, "zstd: %s: %s \n", srcFileName, strerror(errno)); + if ( f==NULL ) DISPLAYLEVEL(1, "%s: %s \n", srcFileName, strerror(errno)); } return f; @@ -285,10 +285,10 @@ static FILE* LZ4IO_openDstFile(const char* dstFileName) if (f != NULL) { /* dest exists, prompt for overwrite authorization */ fclose(f); if (g_displayLevel <= 1) { /* No interaction possible */ - DISPLAY("zstd: %s already exists; not overwritten \n", dstFileName); + DISPLAY("%s already exists; not overwritten \n", dstFileName); return NULL; } - DISPLAY("zstd: %s already exists; do you wish to overwrite (y/N) ? ", dstFileName); + DISPLAY("%s already exists; do you wish to overwrite (y/N) ? ", dstFileName); { int ch = getchar(); if ((ch!='Y') && (ch!='y')) { DISPLAY(" not overwritten \n"); @@ -297,7 +297,7 @@ static FILE* LZ4IO_openDstFile(const char* dstFileName) while ((ch!=EOF) && (ch!='\n')) ch = getchar(); /* flush rest of input line */ } } } f = fopen( dstFileName, "wb" ); - if (f==NULL) DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno)); + if (f==NULL) DISPLAYLEVEL(1, "%s: %s\n", dstFileName, strerror(errno)); } /* sparse file */ diff --git a/programs/util.h b/programs/util.h index d76ce6a..1ad61bc 100644 --- a/programs/util.h +++ b/programs/util.h @@ -427,7 +427,7 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_t* pos, char** bufEnd) { (void)bufStart; (void)bufEnd; (void)pos; - fprintf(stderr, "Directory %s ignored (zstd compiled without _WIN32 or _POSIX_C_SOURCE)\n", dirName); + fprintf(stderr, "Directory %s ignored (lz4 compiled without _WIN32 or _POSIX_C_SOURCE)\n", dirName); return 0; } |