Skip to content

Commit 60a8a0d

Browse files
Shuotian Chenglguohan
Shuotian Cheng
authored andcommitted
[orchagent]: Cast enum class variable to int (#819)
Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
1 parent 3dd37a4 commit 60a8a0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

orchagent/vnetorch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ bool VNetVrfObject::createObj(vector<sai_attribute_t>& attrs)
103103
sai_object_id_t router_id;
104104
if (vr_type != VR_TYPE::VR_INVALID && l_fn(router_id))
105105
{
106-
SWSS_LOG_DEBUG("VNET vr_type %d router id %lx ", vr_type, router_id);
106+
SWSS_LOG_DEBUG("VNET vr_type %d router id %lx ", static_cast<int>(vr_type), router_id);
107107
vr_ids_.insert(std::pair<VR_TYPE, sai_object_id_t>(vr_type, router_id));
108108
}
109109
}

orchagent/vxlanorch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ create_tunnel_map(MAP_T map_t)
8282

8383
if (map_t == MAP_T::MAP_TO_INVALID)
8484
{
85-
SWSS_LOG_ERROR("Invalid map type %d", map_t);
85+
SWSS_LOG_ERROR("Invalid map type %d", static_cast<int>(map_t));
8686
return SAI_NULL_OBJECT_ID;
8787
}
8888

0 commit comments

Comments
 (0)