diff options
author | antirez <antirez@gmail.com> | 2020-05-02 00:02:18 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-05-02 00:03:14 +0200 |
commit | a07a4ada1919b920665df8f07dde177f6ff22eda (patch) | |
tree | 3e8da77b81cf30152a57d407e516cbb61c886b6c | |
parent | 365316aa59545d90de4e105cec57f22aa5b52ff9 (diff) | |
download | redis-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"); } } |