Use GCC printf format attribute for redisLog().

This commit also fixes redisLog() statements producing warnings.
This commit is contained in:
antirez
2013-02-27 12:27:15 +01:00
parent c35b065a64
commit f9b5ca29fd
6 changed files with 93 additions and 84 deletions

View File

@ -727,7 +727,7 @@ int clusterProcessPacket(clusterLink *link) {
sender = clusterLookupNode(hdr->sender);
if (type == CLUSTERMSG_TYPE_PING || type == CLUSTERMSG_TYPE_MEET) {
int update_config = 0;
redisLog(REDIS_DEBUG,"Ping packet received: %p", link->node);
redisLog(REDIS_DEBUG,"Ping packet received: %p", (void*)link->node);
/* Add this node if it is new for us and the msg type is MEET.
* In this stage we don't try to add the node with the right
@ -755,7 +755,7 @@ int clusterProcessPacket(clusterLink *link) {
int update_state = 0;
int update_config = 0;
redisLog(REDIS_DEBUG,"Pong packet received: %p", link->node);
redisLog(REDIS_DEBUG,"Pong packet received: %p", (void*)link->node);
if (link->node) {
if (link->node->flags & REDIS_NODE_HANDSHAKE) {
/* If we already have this node, try to change the