Commit e03c730d authored by antirez's avatar antirez
Browse files

Use printf %zu specifier to print private_dirty.

parent 718fd3c6
...@@ -970,7 +970,7 @@ int rewriteAppendOnlyFileBackground(void) { ...@@ -970,7 +970,7 @@ int rewriteAppendOnlyFileBackground(void) {
if (private_dirty) { if (private_dirty) {
redisLog(REDIS_NOTICE, 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)); private_dirty/(1024*1024));
} }
exitFromChild(0); exitFromChild(0);
......
...@@ -737,7 +737,7 @@ int rdbSaveBackground(char *filename) { ...@@ -737,7 +737,7 @@ int rdbSaveBackground(char *filename) {
if (private_dirty) { if (private_dirty) {
redisLog(REDIS_NOTICE, 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)); private_dirty/(1024*1024));
} }
} }
......
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