Use printf %zu specifier to print private_dirty.

This commit is contained in:
antirez 2013-08-20 12:04:57 +02:00
parent 1c08302edc
commit 7e9929e12e
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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));
}
}