From a07a4ada1919b920665df8f07dde177f6ff22eda Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 2 May 2020 00:02:18 +0200 Subject: 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. --- src/rdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); } } -- cgit v1.2.1