diff --git a/src/util/src/hash.c b/src/util/src/hash.c index 1dfc411d74efd3b49129cfb58df5d72cf618a7b6..8806ffdbc15124f0429356bf13506888ed243e9d 100644 --- a/src/util/src/hash.c +++ b/src/util/src/hash.c @@ -679,7 +679,7 @@ void taosHashTableResize(SHashObj *pHashObj) { int32_t newCapacity = (int32_t)(pHashObj->capacity << 1u); if (newCapacity > HASH_MAX_CAPACITY) { - uDebug("current capacity:%lu, maximum capacity:%d, no resize applied due to limitation is reached", + uDebug("current capacity:%zu, maximum capacity:%d, no resize applied due to limitation is reached", pHashObj->capacity, HASH_MAX_CAPACITY); return; } @@ -687,7 +687,7 @@ void taosHashTableResize(SHashObj *pHashObj) { int64_t st = taosGetTimestampUs(); void *pNewEntryList = realloc(pHashObj->hashList, sizeof(void *) * newCapacity); if (pNewEntryList == NULL) { - uDebug("cache resize failed due to out of memory, capacity remain:%lu", pHashObj->capacity); + uDebug("cache resize failed due to out of memory, capacity remain:%zu", pHashObj->capacity); return; }