Skip to content

Commit db73d09

Browse files
committed
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.
1 parent 7c0fe72 commit db73d09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rdb.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,9 @@ int rdbLoadRio(rio *rdb, int rdbflags, rdbSaveInfo *rsi) {
22922292
serverLog(LL_WARNING,"RDB file was saved with checksum disabled: no check performed.");
22932293
} else if (cksum != expected) {
22942294
serverLog(LL_WARNING,"Wrong RDB checksum expected: (%llx) but "
2295-
"got (%llx). Aborting now.",expected,cksum);
2295+
"got (%llx). Aborting now.",
2296+
(unsigned long long)expected,
2297+
(unsigned long long)cksum);
22962298
rdbExitReportCorruptRDB("RDB CRC error");
22972299
}
22982300
}

0 commit comments

Comments
 (0)