Skip to content

Commit

Permalink
Use printf %zu specifier to print private_dirty.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Aug 20, 2013
1 parent 1c08302 commit 7e9929e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aof.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 7e9929e

Please sign in to comment.