From 7c2f225c364be4d697245985372e285c7d29e3f6 Mon Sep 17 00:00:00 2001 From: "mestia@debian.org" Date: Sun, 7 Jun 2020 08:31:18 +0100 Subject: [PATCH] Fix typos detected by lintian Forwarded: https://github.com/facebook/zstd/issues/2191 Gbp-Pq: Name 0016-Fix-spelling.patch --- programs/fileio.c | 4 ++-- programs/zstd.1 | 2 +- programs/zstd.1.md | 2 +- tests/playTests.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/programs/fileio.c b/programs/fileio.c index d72879d..194dc59 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -809,7 +809,7 @@ static void FIO_adjustParamsForPatchFromMode(FIO_prefs_t* const prefs, comprParams->windowLog = MIN(ZSTD_WINDOWLOG_MAX, fileWindowLog); if (fileWindowLog > ZSTD_cycleLog(cParams.hashLog, cParams.strategy)) { if (!prefs->ldmFlag) - DISPLAYLEVEL(1, "long mode automaticaly triggered\n"); + DISPLAYLEVEL(1, "long mode automatically triggered\n"); FIO_setLdmFlag(prefs, 1); } if (cParams.strategy >= ZSTD_btopt) { @@ -1505,7 +1505,7 @@ static int FIO_compressFilename_dstFile(FIO_prefs_t* const prefs, } else if ( strcmp(dstFileName, stdoutmark) && strcmp(dstFileName, nulmark) && transfer_permissions) { - DISPLAYLEVEL(6, "FIO_compressFilename_dstFile: transfering permissions into dst: %s \n", dstFileName); + DISPLAYLEVEL(6, "FIO_compressFilename_dstFile: transferring permissions into dst: %s \n", dstFileName); UTIL_setFileStat(dstFileName, &statbuf); } else { DISPLAYLEVEL(6, "FIO_compressFilename_dstFile: do not transfer permissions into dst: %s \n", dstFileName); diff --git a/programs/zstd.1 b/programs/zstd.1 index 9ba0b4f..04a9c29 100644 --- a/programs/zstd.1 +++ b/programs/zstd.1 @@ -114,7 +114,7 @@ Note: If \fBwindowLog\fR is set to larger than 27, \fB\-\-long=windowLog\fR or \ \fB\-\-patch\-from=FILE\fR: Specify the file to be used as a reference point for zstd\'s diff engine\. This is effectively dictionary compression with some convenient parameter selection, namely that windowSize > srcSize\. . .IP -Note: cannot use both this and \-D together Note: \fB\-\-long\fR mode will be automatically activated if chainLog < fileLog (fileLog being the windowLog requried to cover the whole file)\. You can also manually force it\. Node: for all levels, you can use \-\-patch\-from in \-\-single\-thread mode to improve compression ratio at the cost of speed Note: for level 19, you can get increased compression ratio at the cost of speed by specifying \fB\-\-zstd=targetLength=\fR to be something large (i\.e 4096), and by setting a large \fB\-\-zstd=chainLog=\fR +Note: cannot use both this and \-D together Note: \fB\-\-long\fR mode will be automatically activated if chainLog < fileLog (fileLog being the windowLog required to cover the whole file)\. You can also manually force it\. Node: for all levels, you can use \-\-patch\-from in \-\-single\-thread mode to improve compression ratio at the cost of speed Note: for level 19, you can get increased compression ratio at the cost of speed by specifying \fB\-\-zstd=targetLength=\fR to be something large (i\.e 4096), and by setting a large \fB\-\-zstd=chainLog=\fR . .IP "\(bu" 4 \fB\-M#\fR, \fB\-\-memory=#\fR: Set a memory usage limit\. By default, Zstandard uses 128 MB for decompression as the maximum amount of memory the decompressor is allowed to use, but you can override this manually if need be in either direction (ie\. you can increase or decrease it)\. diff --git a/programs/zstd.1.md b/programs/zstd.1.md index 550e2e5..79aff17 100644 --- a/programs/zstd.1.md +++ b/programs/zstd.1.md @@ -129,7 +129,7 @@ the last one takes effect. Note: cannot use both this and -D together Note: `--long` mode will be automatically activated if chainLog < fileLog - (fileLog being the windowLog requried to cover the whole file). You + (fileLog being the windowLog required to cover the whole file). You can also manually force it. Node: for all levels, you can use --patch-from in --single-thread mode to improve compression ratio at the cost of speed diff --git a/tests/playTests.sh b/tests/playTests.sh index d566e9e..31f41cd 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -1285,7 +1285,7 @@ println "\n===> patch-from long mode trigger larger file test" datagen -g5000000 > tmp_dict datagen -g5000000 > tmp_patch -zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automaticaly triggered" +zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automatically triggered" rm -rf tmp* println "\n===> large files tests " -- 2.30.2