mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
More fixes to printf format specifier. (#7909)
mostly signed / unsigned mismatches. Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com> Co-authored-by: Oran Agra <oran@redislabs.com>
This commit is contained in:
parent
407da77ea4
commit
a56cbd3036
@ -1135,10 +1135,10 @@ size_t _dictGetStatsHt(char *buf, size_t bufsize, dictht *ht, int tableid) {
|
||||
/* Generate human readable stats. */
|
||||
l += snprintf(buf+l,bufsize-l,
|
||||
"Hash table %d stats (%s):\n"
|
||||
" table size: %ld\n"
|
||||
" number of elements: %ld\n"
|
||||
" different slots: %ld\n"
|
||||
" max chain length: %ld\n"
|
||||
" table size: %lu\n"
|
||||
" number of elements: %lu\n"
|
||||
" different slots: %lu\n"
|
||||
" max chain length: %lu\n"
|
||||
" avg chain length (counted): %.02f\n"
|
||||
" avg chain length (computed): %.02f\n"
|
||||
" Chain length distribution:\n",
|
||||
|
@ -1892,7 +1892,7 @@ void raxShow(rax *rax) {
|
||||
/* Used by debugnode() macro to show info about a given node. */
|
||||
void raxDebugShowNode(const char *msg, raxNode *n) {
|
||||
if (raxDebugMsg == 0) return;
|
||||
printf("%s: %p [%.*s] key:%d size:%d children:",
|
||||
printf("%s: %p [%.*s] key:%u size:%u children:",
|
||||
msg, (void*)n, (int)n->size, (char*)n->data, n->iskey, n->size);
|
||||
int numcld = n->iscompr ? 1 : n->size;
|
||||
raxNode **cldptr = raxNodeLastChildPtr(n) - (numcld-1);
|
||||
|
@ -5578,7 +5578,7 @@ static int clusterManagerCommandCreate(int argc, char **argv) {
|
||||
if (last > CLUSTER_MANAGER_SLOTS || i == (masters_count - 1))
|
||||
last = CLUSTER_MANAGER_SLOTS - 1;
|
||||
if (last < first) last = first;
|
||||
printf("Master[%d] -> Slots %lu - %lu\n", i, first, last);
|
||||
printf("Master[%d] -> Slots %ld - %ld\n", i, first, last);
|
||||
master->slots_count = 0;
|
||||
for (j = first; j <= last; j++) {
|
||||
master->slots[j] = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user