Unverified Commit 43af28f5 authored by Wang Yuan's avatar Wang Yuan Committed by GitHub
Browse files

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

unlike printf, sdscatfmt doesn't take %d
parent 6b4ae919
...@@ -4141,7 +4141,7 @@ sds genRedisInfoString(const char *section) { ...@@ -4141,7 +4141,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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment