Skip to content

Commit 72723f0

Browse files
committed
Minor fixes
1 parent 6345e24 commit 72723f0

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

cfgmgr/intfmgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ bool IntfMgr::isIfaceNameLenOk(const string &alias)
310310
{
311311
if (alias.length() >= IFNAMSIZ)
312312
{
313-
SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %zu characters", alias.c_str(), IFNAMSIZ);
313+
SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %d characters", alias.c_str(), IFNAMSIZ);
314314
return false;
315315
}
316316
return true;

cfgmgr/teammgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ bool TeamMgr::isLagIfaceNameLenOk(const string &alias)
9090

9191
if (alias.length() >= IFNAMSIZ)
9292
{
93-
SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %zu characters", alias.c_str(), IFNAMSIZ);
93+
SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %d characters", alias.c_str(), IFNAMSIZ);
9494
return false;
9595
}
9696
return true;

cfgmgr/tunnelmgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ bool TunnelMgr::isLoopbackIfaceNameLenOk(const string &alias)
296296
{
297297
if (alias.length() >= IFNAMSIZ)
298298
{
299-
SWSS_LOG_ERROR("Invalid loopback interface name %s length, it must not exceed %zu characters", alias.c_str(), IFNAMSIZ);
299+
SWSS_LOG_ERROR("Invalid loopback interface name %s length, it must not exceed %d characters", alias.c_str(), IFNAMSIZ);
300300
return false;
301301
}
302302
return true;

cfgmgr/vlanmgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ bool VlanMgr::isVlanIfaceNameLenOk(const string &alias)
498498
{
499499
if (alias.length() >= IFNAMSIZ)
500500
{
501-
SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %zu characters", alias.c_str(), IFNAMSIZ);
501+
SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %d characters", alias.c_str(), IFNAMSIZ);
502502
return false;
503503
}
504504
return true;

cfgmgr/vrfmgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ bool VrfMgr::isVrefNameLenOk(const string& vrfName)
218218
{
219219
if (vrfName.length() >= IFNAMSIZ)
220220
{
221-
SWSS_LOG_ERROR("Invalid VRF interface name %s length, it must not exceed %zu characters", vrfName.c_str(), IFNAMSIZ);
221+
SWSS_LOG_ERROR("Invalid VRF interface name %s length, it must not exceed %d characters", vrfName.c_str(), IFNAMSIZ);
222222
return false;
223223
}
224224
return true;

cfgmgr/vxlanmgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ void VxlanMgr::doTask(Consumer &consumer)
218218
std::string & alias = kfvKey(t);
219219
if (alias.length() >= IFNAMSIZ)
220220
{
221-
SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %zu characters", alias.c_str(), IFNAMSIZ);
221+
SWSS_LOG_ERROR("Invalid interface name %s length, it must not exceed %d characters", alias.c_str(), IFNAMSIZ);
222222
}
223223
else
224224
{

0 commit comments

Comments
 (0)