From 60a8a0df0777f5d76882a89c6c5525a5a67afff5 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Thu, 28 Mar 2019 02:08:06 -0700 Subject: [PATCH] [orchagent]: Cast enum class variable to int (#819) Signed-off-by: Shu0T1an ChenG --- orchagent/vnetorch.cpp | 2 +- orchagent/vxlanorch.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orchagent/vnetorch.cpp b/orchagent/vnetorch.cpp index 564b87aecd78..a5d3b052d18b 100644 --- a/orchagent/vnetorch.cpp +++ b/orchagent/vnetorch.cpp @@ -103,7 +103,7 @@ bool VNetVrfObject::createObj(vector& 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(vr_type), router_id); vr_ids_.insert(std::pair(vr_type, router_id)); } } diff --git a/orchagent/vxlanorch.cpp b/orchagent/vxlanorch.cpp index 66ae51fad101..9e05c6118cc1 100644 --- a/orchagent/vxlanorch.cpp +++ b/orchagent/vxlanorch.cpp @@ -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(map_t)); return SAI_NULL_OBJECT_ID; }