From 72723f0c08a96532cf3414ce00b69319a52fbbeb Mon Sep 17 00:00:00 2001 From: afeigin Date: Thu, 21 Mar 2024 15:03:14 +0200 Subject: [PATCH] Minor fixes --- cfgmgr/intfmgr.cpp | 2 +- cfgmgr/teammgr.cpp | 2 +- cfgmgr/tunnelmgr.cpp | 2 +- cfgmgr/vlanmgr.cpp | 2 +- cfgmgr/vrfmgr.cpp | 2 +- cfgmgr/vxlanmgr.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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 {