summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-08-20 12:04:57 +0200
committerantirez <antirez@gmail.com>2013-08-20 12:09:47 +0200
commite03c730df4335b1f1baef8ea40a59a013215c794 (patch)
tree157a922eef974e248772e411046bf38143cb502a
parent718fd3c6007c6feaab4ccb5ea788efb97dd43c6f (diff)
downloadredis-e03c730df4335b1f1baef8ea40a59a013215c794.tar.gz
Use printf %zu specifier to print private_dirty.
-rw-r--r--src/aof.c2
-rw-r--r--src/rdb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/aof.c b/src/aof.c
index e05bb9c65..53a14c478 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -970,7 +970,7 @@ int rewriteAppendOnlyFileBackground(void) {
if (private_dirty) {
redisLog(REDIS_NOTICE,
- "AOF rewrite: %lu MB of memory used by copy-on-write",
+ "AOF rewrite: %zu MB of memory used by copy-on-write",
private_dirty/(1024*1024));
}
exitFromChild(0);
diff --git a/src/rdb.c b/src/rdb.c
index 7a3bc7633..b85266867 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -737,7 +737,7 @@ int rdbSaveBackground(char *filename) {
if (private_dirty) {
redisLog(REDIS_NOTICE,
- "RDB: %lu MB of memory used by copy-on-write",
+ "RDB: %zu MB of memory used by copy-on-write",
private_dirty/(1024*1024));
}
}