From: antirez Date: Thu, 12 Apr 2012 09:50:18 +0000 (+0200) Subject: Print arch bits with redis-server -v X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/6e05f333a29e379264a6a8949fc2f44d555d632e Print arch bits with redis-server -v --- diff --git a/src/redis.c b/src/redis.c index f1fda57b..7da9c545 100644 --- a/src/redis.c +++ b/src/redis.c @@ -2302,8 +2302,12 @@ void daemonize(void) { } void version() { - printf("Redis server v=%s sha=%s:%d malloc=%s\n", REDIS_VERSION, - redisGitSHA1(), atoi(redisGitDirty()) > 0, ZMALLOC_LIB); + printf("Redis server v=%s sha=%s:%d malloc=%s bits=%d\n", + REDIS_VERSION, + redisGitSHA1(), + atoi(redisGitDirty()) > 0, + ZMALLOC_LIB, + sizeof(long) == 4 ? 32 : 64); exit(0); }