Unknown Suffix Error
Changed so only compiled formats are printed in list of supported extensions
This commit is contained in:
parent
ac4f7ead3b
commit
5ff30fe2e5
@ -1754,8 +1754,18 @@ int FIO_decompressMultipleFilenames(const char** srcNamesTable, unsigned nbFiles
|
|||||||
&& strcmp(suffixPtr, ZSTD_EXTENSION)
|
&& strcmp(suffixPtr, ZSTD_EXTENSION)
|
||||||
&& strcmp(suffixPtr, LZMA_EXTENSION)
|
&& strcmp(suffixPtr, LZMA_EXTENSION)
|
||||||
&& strcmp(suffixPtr, LZ4_EXTENSION)) ) {
|
&& strcmp(suffixPtr, LZ4_EXTENSION)) ) {
|
||||||
DISPLAYLEVEL(1, "zstd: %s: unknown suffix (%s/%s/%s/%s/%s expected) -- ignored \n",
|
char suffixlist[50] = ZSTD_EXTENSION;
|
||||||
srcFileName, GZ_EXTENSION, XZ_EXTENSION, ZSTD_EXTENSION, LZMA_EXTENSION, LZ4_EXTENSION);
|
#ifdef ZSTD_GZCOMPRESS
|
||||||
|
strcat(suffixlist, "/" GZ_EXTENSION);
|
||||||
|
#endif
|
||||||
|
#ifdef ZSTD_LZMACOMPRESS
|
||||||
|
strcat(suffixlist, "/" XZ_EXTENSION "/" LZMA_EXTENSION);
|
||||||
|
#endif
|
||||||
|
#ifdef ZSTD_LZ4COMPRESS
|
||||||
|
strcat(suffixlist, "/" LZ4_EXTENSION);
|
||||||
|
#endif
|
||||||
|
DISPLAYLEVEL(1, "zstd: %s: unknown suffix (%s expected) -- ignored \n",
|
||||||
|
srcFileName, suffixlist);
|
||||||
skippedFiles++;
|
skippedFiles++;
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user