From 05ef2207f2348b2e36d6be5a75b8e8a06bab3f55 Mon Sep 17 00:00:00 2001 From: dflynn-Nokia <60479697+dflynn-Nokia@users.noreply.github.com> Date: Thu, 17 Dec 2020 10:16:49 -0500 Subject: [PATCH] [vxlanmgr] Fix build error when compiling for armhf (32-bit) (#1552) Changed format specifiers from %lu to %zu for size_t to avoid compilation errors in arm 32-bit --- cfgmgr/vxlanmgr.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cfgmgr/vxlanmgr.cpp b/cfgmgr/vxlanmgr.cpp index be570dff5763..9ad06d9adb3f 100644 --- a/cfgmgr/vxlanmgr.cpp +++ b/cfgmgr/vxlanmgr.cpp @@ -915,13 +915,13 @@ void VxlanMgr::createAppDBTunnelMapTable(const KeyOpFieldsValuesTuple & t) if (it != m_appVxlanTunnelMapKeysRecon.end()) { m_appVxlanTunnelMapKeysRecon.erase(it); - SWSS_LOG_INFO("Reconcile App Tunnel Map Table create %s reconciled. Pending %lu", + SWSS_LOG_INFO("Reconcile App Tunnel Map Table create %s reconciled. Pending %zu", vxlanTunnelMapName.c_str(), m_appVxlanTunnelMapKeysRecon.size()); return; } else { - SWSS_LOG_INFO("Reconcile App Tunnel Map Table create %s doesnt not exist. Pending %lu", + SWSS_LOG_INFO("Reconcile App Tunnel Map Table create %s doesnt not exist. Pending %zu", vxlanTunnelMapName.c_str(), m_appVxlanTunnelMapKeysRecon.size()); } } @@ -965,13 +965,13 @@ int VxlanMgr::createVxlanNetdevice(std::string vxlanTunnelName, std::string vni_ if (it != m_vxlanNetDevices.end()) { m_vxlanNetDevices.erase(it); - SWSS_LOG_INFO("Reconcile VxlanNetDevice %s reconciled. Pending %lu", + SWSS_LOG_INFO("Reconcile VxlanNetDevice %s reconciled. Pending %zu", vxlan_dev_name.c_str(), m_vxlanNetDevices.size()); return 0; } else { - SWSS_LOG_INFO("Reconcile VxlanNetDevice %s does not exist. Pending %lu", + SWSS_LOG_INFO("Reconcile VxlanNetDevice %s does not exist. Pending %zu", vxlan_dev_name.c_str(), m_vxlanNetDevices.size()); } } @@ -1184,7 +1184,7 @@ void VxlanMgr::beginReconcile(bool warm) { SWSS_LOG_INFO("App Tunnel Map Key: %s", k.c_str()); } - SWSS_LOG_INFO("Pending %lu entries for the Tunnel Map Table", m_appVxlanTunnelMapKeysRecon.size()); + SWSS_LOG_INFO("Pending %zu entries for the Tunnel Map Table", m_appVxlanTunnelMapKeysRecon.size()); return; }