diff --git a/cfgmgr/intfmgr.cpp b/cfgmgr/intfmgr.cpp index 17990e333e..25fbac4a59 100644 --- a/cfgmgr/intfmgr.cpp +++ b/cfgmgr/intfmgr.cpp @@ -310,7 +310,7 @@ bool IntfMgr::isIfaceNameLenOk(const string &alias) { if (alias.length() >= IFNAMSIZ) { - SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %zu characters", alias.c_str(), IFNAMSIZ); + SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %d characters", alias.c_str(), IFNAMSIZ); return false; } return true; diff --git a/cfgmgr/teammgr.cpp b/cfgmgr/teammgr.cpp index 25741a075c..8c3aa4b5fa 100644 --- a/cfgmgr/teammgr.cpp +++ b/cfgmgr/teammgr.cpp @@ -90,7 +90,7 @@ bool TeamMgr::isLagIfaceNameLenOk(const string &alias) if (alias.length() >= IFNAMSIZ) { - SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %zu characters", alias.c_str(), IFNAMSIZ); + SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %d characters", alias.c_str(), IFNAMSIZ); return false; } return true; diff --git a/cfgmgr/tunnelmgr.cpp b/cfgmgr/tunnelmgr.cpp index 1018742666..4b28bea3d0 100644 --- a/cfgmgr/tunnelmgr.cpp +++ b/cfgmgr/tunnelmgr.cpp @@ -296,7 +296,7 @@ bool TunnelMgr::isLoopbackIfaceNameLenOk(const string &alias) { if (alias.length() >= IFNAMSIZ) { - SWSS_LOG_ERROR("Invalid loopback interface name %s length, it must not exceed %zu characters", alias.c_str(), IFNAMSIZ); + SWSS_LOG_ERROR("Invalid loopback interface name %s length, it must not exceed %d characters", alias.c_str(), IFNAMSIZ); return false; } return true; diff --git a/cfgmgr/vlanmgr.cpp b/cfgmgr/vlanmgr.cpp index 46c1ca38c7..efd0afba8a 100644 --- a/cfgmgr/vlanmgr.cpp +++ b/cfgmgr/vlanmgr.cpp @@ -498,7 +498,7 @@ bool VlanMgr::isVlanIfaceNameLenOk(const string &alias) { if (alias.length() >= IFNAMSIZ) { - SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %zu characters", alias.c_str(), IFNAMSIZ); + SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %d characters", alias.c_str(), IFNAMSIZ); return false; } return true; diff --git a/cfgmgr/vrfmgr.cpp b/cfgmgr/vrfmgr.cpp index 1d04b208cb..07d3b9cea1 100644 --- a/cfgmgr/vrfmgr.cpp +++ b/cfgmgr/vrfmgr.cpp @@ -218,7 +218,7 @@ bool VrfMgr::isVrefNameLenOk(const string& vrfName) { if (vrfName.length() >= IFNAMSIZ) { - SWSS_LOG_ERROR("Invalid VRF interface name %s length, it must not exceed %zu characters", vrfName.c_str(), IFNAMSIZ); + SWSS_LOG_ERROR("Invalid VRF interface name %s length, it must not exceed %d characters", vrfName.c_str(), IFNAMSIZ); return false; } return true; diff --git a/cfgmgr/vxlanmgr.cpp b/cfgmgr/vxlanmgr.cpp index 6e6e84d250..e4565a48f6 100644 --- a/cfgmgr/vxlanmgr.cpp +++ b/cfgmgr/vxlanmgr.cpp @@ -218,7 +218,7 @@ void VxlanMgr::doTask(Consumer &consumer) std::string & alias = kfvKey(t); if (alias.length() >= IFNAMSIZ) { - SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %zu characters", alias.c_str(), IFNAMSIZ); + SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %d characters", alias.c_str(), IFNAMSIZ); } else {