Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arfeigin committed Mar 21, 2024
1 parent 6345e24 commit 72723f0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cfgmgr/intfmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion cfgmgr/teammgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion cfgmgr/tunnelmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion cfgmgr/vlanmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion cfgmgr/vrfmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion cfgmgr/vxlanmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 72723f0

Please sign in to comment.