Skip to content

Commit

Permalink
Cast printf() argument to the format specifier.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
antirez committed May 1, 2020
1 parent 7c0fe72 commit db73d09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit db73d09

Please sign in to comment.