Fix wrong format specifiers of 'sdscatfmt' for the INFO command (#7706)

unlike printf, sdscatfmt doesn't take %d

(cherry picked from commit 43af28f5b487370bd3d65d00be93c4a23ee42fa7)
This commit is contained in:
Wang Yuan 2020-08-25 03:59:56 +08:00 committed by Oran Agra
parent d4e1c88052
commit 1b100a167a

View File

@ -4137,7 +4137,7 @@ sds genRedisInfoString(const char *section) {
"lru_clock:%u\r\n" "lru_clock:%u\r\n"
"executable:%s\r\n" "executable:%s\r\n"
"config_file:%s\r\n" "config_file:%s\r\n"
"io_threads_active:%d\r\n", "io_threads_active:%i\r\n",
REDIS_VERSION, REDIS_VERSION,
redisGitSHA1(), redisGitSHA1(),
strtol(redisGitDirty(),NULL,10) > 0, strtol(redisGitDirty(),NULL,10) > 0,