Use GCC printf format attribute for redisLog().

This commit also fixes redisLog() statements producing warnings.
This commit is contained in:
antirez
2013-02-27 12:27:15 +01:00
parent c35b065a64
commit f9b5ca29fd
6 changed files with 93 additions and 84 deletions

View File

@ -536,7 +536,7 @@ int loadAppendOnlyFile(char *filename) {
/* Command lookup */
cmd = lookupCommand(argv[0]->ptr);
if (!cmd) {
redisLog(REDIS_WARNING,"Unknown command '%s' reading the append only file", argv[0]->ptr);
redisLog(REDIS_WARNING,"Unknown command '%s' reading the append only file", (char*)argv[0]->ptr);
exit(1);
}
/* Run the command in the context of a fake client */