]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
#754 Add a hint about -o option
authorSergey Ponomarev <stokito@gmail.com>
Sat, 14 Sep 2019 18:23:47 +0000 (21:23 +0300)
committerSergey Ponomarev <stokito@gmail.com>
Sat, 14 Sep 2019 18:23:47 +0000 (21:23 +0300)
programs/fileio.c

index 7ad54055847b1e782915b879dcb95cea12e6ff52..edf58fee6139de8f77bfc1d552476fe9dd438340 100644 (file)
@@ -2185,7 +2185,7 @@ FIO_determineDstName(const char* srcFileName)
     size_t suffixSize;
     const char* const suffixPtr = strrchr(srcFileName, '.');
     if (suffixPtr == NULL) {
-        DISPLAYLEVEL(1, "zstd: %s: missing suffix (%s expected) -- ignored \n",
+        DISPLAYLEVEL(1, "zstd: %s: missing suffix (%s expected). Can't derive the output file name so specify it with -o dstFileName. -- ignored \n",
                         srcFileName, SUFFIX_LIST);
         return NULL;
     }
@@ -2205,7 +2205,7 @@ FIO_determineDstName(const char* srcFileName)
             && strcmp(suffixPtr, LZ4_EXTENSION)
         #endif
             ) ) {
-        DISPLAYLEVEL(1, "zstd: %s: unknown suffix (%s expected) -- ignored \n",
+        DISPLAYLEVEL(1, "zstd: %s: unknown suffix (%s expected). Can't derive the output file name so specify it with -o dstFileName. -- ignored \n",
                      srcFileName, SUFFIX_LIST);
         return NULL;
     }