mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 05:21:33 +00:00
Use GCC printf format attribute for redisLog().
This commit also fixes redisLog() statements producing warnings.
This commit is contained in:
@ -886,7 +886,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
if (!server.sentinel_mode) {
|
||||
run_with_period(5000) {
|
||||
redisLog(REDIS_VERBOSE,
|
||||
"%d clients connected (%d slaves), %zu bytes in use",
|
||||
"%lu clients connected (%lu slaves), %zu bytes in use",
|
||||
listLength(server.clients)-listLength(server.slaves),
|
||||
listLength(server.slaves),
|
||||
zmalloc_used_memory());
|
||||
@ -935,7 +935,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
if (server.dirty >= sp->changes &&
|
||||
server.unixtime-server.lastsave > sp->seconds) {
|
||||
redisLog(REDIS_NOTICE,"%d changes in %d seconds. Saving...",
|
||||
sp->changes, sp->seconds);
|
||||
sp->changes, (int)sp->seconds);
|
||||
rdbSaveBackground(server.rdb_filename);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user