From 6e05f333a29e379264a6a8949fc2f44d555d632e Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 12 Apr 2012 11:50:18 +0200 Subject: [PATCH] Print arch bits with redis-server -v --- src/redis.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); }