Fix printf format specifier for unsigned in ziplistRepr (#7907)

Only used by DEBUG and testing code.

Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
Hanif Ariffin 2020-10-13 17:42:52 +08:00 committed by GitHub
parent 24092eea06
commit f559a57206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1230,7 +1230,7 @@ void ziplistRepr(unsigned char *zl) {
zlentry entry; zlentry entry;
printf( printf(
"{total bytes %d} " "{total bytes %u} "
"{num entries %u}\n" "{num entries %u}\n"
"{tail offset %u}\n", "{tail offset %u}\n",
intrev32ifbe(ZIPLIST_BYTES(zl)), intrev32ifbe(ZIPLIST_BYTES(zl)),
@ -1243,7 +1243,7 @@ void ziplistRepr(unsigned char *zl) {
"{\n" "{\n"
"\taddr 0x%08lx,\n" "\taddr 0x%08lx,\n"
"\tindex %2d,\n" "\tindex %2d,\n"
"\toffset %5ld,\n" "\toffset %5lu,\n"
"\thdr+entry len: %5u,\n" "\thdr+entry len: %5u,\n"
"\thdr len%2u,\n" "\thdr len%2u,\n"
"\tprevrawlen: %5u,\n" "\tprevrawlen: %5u,\n"