summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-05-02 00:02:18 +0200
committerantirez <antirez@gmail.com>2020-05-02 00:03:14 +0200
commita07a4ada1919b920665df8f07dde177f6ff22eda (patch)
tree3e8da77b81cf30152a57d407e516cbb61c886b6c
parent365316aa59545d90de4e105cec57f22aa5b52ff9 (diff)
downloadredis-a07a4ada1919b920665df8f07dde177f6ff22eda.tar.gz
Cast printf() argument to the format specifier.
We could use uint64_t specific macros, but after all it's simpler to just use an obvious equivalent type plus casting: this will be a no op and is simpler than fixed size types printf macros.
-rw-r--r--src/rdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rdb.c b/src/rdb.c
index 9f6bf13f1..4fc385848 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -2292,7 +2292,9 @@ int rdbLoadRio(rio *rdb, int rdbflags, rdbSaveInfo *rsi) {
serverLog(LL_WARNING,"RDB file was saved with checksum disabled: no check performed.");
} else if (cksum != expected) {
serverLog(LL_WARNING,"Wrong RDB checksum expected: (%llx) but "
- "got (%llx). Aborting now.",expected,cksum);
+ "got (%llx). Aborting now.",
+ (unsigned long long)expected,
+ (unsigned long long)cksum);
rdbExitReportCorruptRDB("RDB CRC error");
}
}