diff --git a/lib/src/VirtualObjectIdManager.cpp b/lib/src/VirtualObjectIdManager.cpp index 294c4f51e043..499d6d13be00 100644 --- a/lib/src/VirtualObjectIdManager.cpp +++ b/lib/src/VirtualObjectIdManager.cpp @@ -146,7 +146,7 @@ sai_object_type_t VirtualObjectIdManager::saiObjectTypeQuery( if (objectType == SAI_OBJECT_TYPE_NULL || objectType >= SAI_OBJECT_TYPE_EXTENSIONS_MAX) { - SWSS_LOG_ERROR("invalid object id 0x%s", + SWSS_LOG_ERROR("invalid object id %s", sai_serialize_object_id(objectId).c_str()); /* @@ -359,7 +359,7 @@ sai_object_type_t VirtualObjectIdManager::objectTypeQuery( if (!sai_metadata_is_object_type_valid(objectType)) { - SWSS_LOG_ERROR("invalid object id 0x%s", + SWSS_LOG_ERROR("invalid object id %s", sai_serialize_object_id(objectId).c_str()); return SAI_OBJECT_TYPE_NULL; diff --git a/syncd/Syncd.cpp b/syncd/Syncd.cpp index a335e8b5b2cd..34de8675e28c 100644 --- a/syncd/Syncd.cpp +++ b/syncd/Syncd.cpp @@ -742,7 +742,7 @@ sai_status_t Syncd::processBulkEntry( } sai_status_t Syncd::processEntry( - _In_ sai_object_meta_key_t &metaKey, + _In_ sai_object_meta_key_t metaKey, _In_ sai_common_api_t api, _In_ uint32_t attr_count, _In_ sai_attribute_t *attr_list) diff --git a/syncd/Syncd.h b/syncd/Syncd.h index 9a403d2bf226..96d6258a45c5 100644 --- a/syncd/Syncd.h +++ b/syncd/Syncd.h @@ -211,7 +211,7 @@ namespace syncd public: // TODO to private sai_status_t processEntry( - _In_ sai_object_meta_key_t &meta_key, + _In_ sai_object_meta_key_t meta_key, _In_ sai_common_api_t api, _In_ uint32_t attr_count, _In_ sai_attribute_t *attr_list); diff --git a/vslib/src/RealObjectIdManager.cpp b/vslib/src/RealObjectIdManager.cpp index 986eadef8502..2b121c53bc06 100644 --- a/vslib/src/RealObjectIdManager.cpp +++ b/vslib/src/RealObjectIdManager.cpp @@ -143,7 +143,7 @@ sai_object_type_t RealObjectIdManager::saiObjectTypeQuery( if (objectType == SAI_OBJECT_TYPE_NULL || objectType >= SAI_OBJECT_TYPE_EXTENSIONS_MAX) { - SWSS_LOG_ERROR("invalid object id 0x%s", + SWSS_LOG_ERROR("invalid object id %s", sai_serialize_object_id(objectId).c_str()); /* @@ -357,7 +357,7 @@ sai_object_type_t RealObjectIdManager::objectTypeQuery( if (!sai_metadata_is_object_type_valid(objectType)) { - SWSS_LOG_ERROR("invalid object id 0x%s", + SWSS_LOG_ERROR("invalid object id %s", sai_serialize_object_id(objectId).c_str()); return SAI_OBJECT_TYPE_NULL;