提交 444ac549 编写于 作者: Y Yifan Hao

Fix ARM compilation issue

Use the right format specifier (%zu) to print size_t type.
上级 bdda9415
...@@ -679,7 +679,7 @@ void taosHashTableResize(SHashObj *pHashObj) { ...@@ -679,7 +679,7 @@ void taosHashTableResize(SHashObj *pHashObj) {
int32_t newCapacity = (int32_t)(pHashObj->capacity << 1u); int32_t newCapacity = (int32_t)(pHashObj->capacity << 1u);
if (newCapacity > HASH_MAX_CAPACITY) { 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); pHashObj->capacity, HASH_MAX_CAPACITY);
return; return;
} }
...@@ -687,7 +687,7 @@ void taosHashTableResize(SHashObj *pHashObj) { ...@@ -687,7 +687,7 @@ void taosHashTableResize(SHashObj *pHashObj) {
int64_t st = taosGetTimestampUs(); int64_t st = taosGetTimestampUs();
void *pNewEntryList = realloc(pHashObj->hashList, sizeof(void *) * newCapacity); void *pNewEntryList = realloc(pHashObj->hashList, sizeof(void *) * newCapacity);
if (pNewEntryList == NULL) { 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; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册