Skip to content

Commit

Permalink
[vxlanmgr] Fix build error when compiling for armhf (32-bit) (sonic-n…
Browse files Browse the repository at this point in the history
…et#1552)

Changed format specifiers from %lu to %zu for size_t to avoid compilation
errors in arm 32-bit
  • Loading branch information
dflynn-Nokia authored Dec 17, 2020
1 parent 2cab51d commit 05ef220
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cfgmgr/vxlanmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down Expand Up @@ -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());
}
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 05ef220

Please sign in to comment.