Skip to content

Commit 3951504

Browse files
committed
[vslib] Fix VirtualObjectIdManager multi arch logging
1 parent 5b888a3 commit 3951504

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/src/VirtualObjectIdManager.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,13 @@ sai_object_id_t VirtualObjectIdManager::allocateNewObjectId(
241241

242242
uint64_t objectIndex = m_oidIndexGenerator->increment(); // get new object index
243243

244+
const uint64_t indexMax = SAI_REDIS_OBJECT_INDEX_MAX;
245+
244246
if (objectIndex > SAI_REDIS_OBJECT_INDEX_MAX)
245247
{
246-
SWSS_LOG_THROW("no more object indexes available, given: 0x%" PRIu64 " but limit is 0x%" PRIu64 " ",
248+
SWSS_LOG_THROW("no more object indexes available, given: 0x%" PRIx64 " but limit is 0x%" PRIx64 " ",
247249
objectIndex,
248-
SAI_REDIS_OBJECT_INDEX_MAX);
250+
indexMax);
249251
}
250252

251253
sai_object_id_t objectId = constructObjectId(objectType, switchIndex, objectIndex, m_globalContext);

0 commit comments

Comments
 (0)