Skip to content

Commit

Permalink
[orchagent]: Cast enum class variable to int (#819)
Browse files Browse the repository at this point in the history
Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
  • Loading branch information
Shuotian Cheng authored and lguohan committed Mar 28, 2019
1 parent 3dd37a4 commit 60a8a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orchagent/vnetorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ bool VNetVrfObject::createObj(vector<sai_attribute_t>& attrs)
sai_object_id_t router_id;
if (vr_type != VR_TYPE::VR_INVALID && l_fn(router_id))
{
SWSS_LOG_DEBUG("VNET vr_type %d router id %lx ", vr_type, router_id);
SWSS_LOG_DEBUG("VNET vr_type %d router id %lx ", static_cast<int>(vr_type), router_id);
vr_ids_.insert(std::pair<VR_TYPE, sai_object_id_t>(vr_type, router_id));
}
}
Expand Down
2 changes: 1 addition & 1 deletion orchagent/vxlanorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ create_tunnel_map(MAP_T map_t)

if (map_t == MAP_T::MAP_TO_INVALID)
{
SWSS_LOG_ERROR("Invalid map type %d", map_t);
SWSS_LOG_ERROR("Invalid map type %d", static_cast<int>(map_t));
return SAI_NULL_OBJECT_ID;
}

Expand Down

0 comments on commit 60a8a0d

Please sign in to comment.