From 444ac54909c30777457fe1d5758a1c14690f6a8c Mon Sep 17 00:00:00 2001 From: Yifan Hao Date: Wed, 24 Nov 2021 15:01:02 -0800 Subject: [PATCH] Fix ARM compilation issue Use the right format specifier (%zu) to print size_t type. --- src/util/src/hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/src/hash.c b/src/util/src/hash.c index 1dfc411d74..8806ffdbc1 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; } -- GitLab