Unverified Commit f559a572 authored by Hanif Ariffin's avatar Hanif Ariffin Committed by GitHub
Browse files

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



Only used by DEBUG and testing code.
Signed-off-by: default avatarHanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
parent 24092eea
......@@ -1230,7 +1230,7 @@ void ziplistRepr(unsigned char *zl) {
zlentry entry;
printf(
"{total bytes %d} "
"{total bytes %u} "
"{num entries %u}\n"
"{tail offset %u}\n",
intrev32ifbe(ZIPLIST_BYTES(zl)),
......@@ -1243,7 +1243,7 @@ void ziplistRepr(unsigned char *zl) {
"{\n"
"\taddr 0x%08lx,\n"
"\tindex %2d,\n"
"\toffset %5ld,\n"
"\toffset %5lu,\n"
"\thdr+entry len: %5u,\n"
"\thdr len%2u,\n"
"\tprevrawlen: %5u,\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment