From: inikep Date: Tue, 21 Jun 2016 09:01:29 +0000 (+0200) Subject: bench.c: use ZSTD_VERSION_STRING X-Git-Tag: v0.7.1~1^2~2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf53571012b7d3d0a001d99c4e2ed161a0ffb44;p=thirdparty%2Fzstd.git bench.c: use ZSTD_VERSION_STRING --- diff --git a/programs/bench.c b/programs/bench.c index 51d47bde1..04f4276ce 100644 --- a/programs/bench.c +++ b/programs/bench.c @@ -42,10 +42,6 @@ /* ************************************* * Constants ***************************************/ -#ifndef ZSTD_VERSION -# define ZSTD_VERSION "" -#endif - #define NBLOOPS 3 #define TIMELOOP_MICROSEC 1*1000000ULL /* 1 second */ #define ACTIVEPERIOD_MICROSEC 70*1000000ULL /* 70 seconds */ @@ -363,7 +359,7 @@ static void BMK_benchCLevel(void* srcBuffer, size_t benchedSize, memset(&total, 0, sizeof(total)); if (g_displayLevel == 1 && !g_additionalParam) - DISPLAY("bench %s: input %u bytes, %i iterations, %u KB blocks\n", ZSTD_VERSION, (U32)benchedSize, g_nbIterations, (U32)(g_blockSize>>10)); + DISPLAY("bench %s: input %u bytes, %i iterations, %u KB blocks\n", ZSTD_VERSION_STRING, (U32)benchedSize, g_nbIterations, (U32)(g_blockSize>>10)); if (cLevelLast < cLevel) cLevelLast = cLevel;