summaryrefslogtreecommitdiff
path: root/src/ziplist.c
diff options
context:
space:
mode:
authorHanif Ariffin <hanif.ariffin.4326@gmail.com>2020-10-13 17:42:52 +0800
committerGitHub <noreply@github.com>2020-10-13 12:42:52 +0300
commitf559a572061ac1d33bce4d778e5a2f3c164469bd (patch)
tree9fd6546b7ff832b2899d851787c297c3224f8e6d /src/ziplist.c
parent24092eea062519c99f36ee2f1348345820b9a5dd (diff)
downloadredis-f559a572061ac1d33bce4d778e5a2f3c164469bd.tar.gz
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>
Diffstat (limited to 'src/ziplist.c')
-rw-r--r--src/ziplist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ziplist.c b/src/ziplist.c
index ac5cdafb9..dd7452006 100644
--- a/src/ziplist.c
+++ b/src/ziplist.c
@@ -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"