@@ -5049,7 +5049,7 @@ void NatMgr::doStaticNatTask(Consumer &consumer)
5049
5049
/* Ensure the key size is 1 otherwise ignore */
5050
5050
if (keys.size () != STATIC_NAT_KEY_SIZE)
5051
5051
{
5052
- SWSS_LOG_ERROR (" Invalid key size %lu , skipping %s" , keys.size (), key.c_str ());
5052
+ SWSS_LOG_ERROR (" Invalid key size %zu , skipping %s" , keys.size (), key.c_str ());
5053
5053
it = consumer.m_toSync .erase (it);
5054
5054
continue ;
5055
5055
}
@@ -5366,7 +5366,7 @@ void NatMgr::doStaticNaptTask(Consumer &consumer)
5366
5366
/* Ensure the key size is 3 otherwise ignore */
5367
5367
if (keys.size () != STATIC_NAPT_KEY_SIZE)
5368
5368
{
5369
- SWSS_LOG_ERROR (" Invalid key size %lu , skipping %s" , keys.size (), key.c_str ());
5369
+ SWSS_LOG_ERROR (" Invalid key size %zu , skipping %s" , keys.size (), key.c_str ());
5370
5370
it = consumer.m_toSync .erase (it);
5371
5371
continue ;
5372
5372
}
@@ -5707,7 +5707,7 @@ void NatMgr::doNatPoolTask(Consumer &consumer)
5707
5707
/* Ensure the key size is 1 otherwise ignore */
5708
5708
if (keys.size () != POOL_TABLE_KEY_SIZE)
5709
5709
{
5710
- SWSS_LOG_ERROR (" Invalid key size %lu , skipping %s" , keys.size (), key.c_str ());
5710
+ SWSS_LOG_ERROR (" Invalid key size %zu , skipping %s" , keys.size (), key.c_str ());
5711
5711
it = consumer.m_toSync .erase (it);
5712
5712
continue ;
5713
5713
}
@@ -5766,7 +5766,7 @@ void NatMgr::doNatPoolTask(Consumer &consumer)
5766
5766
/* Ensure the Pool name length is not more than 32 otherwise ignore */
5767
5767
if (key.length () > 32 )
5768
5768
{
5769
- SWSS_LOG_ERROR (" Invalid pool name length - %lu , skipping %s" , key.length (), key.c_str ());
5769
+ SWSS_LOG_ERROR (" Invalid pool name length - %zu , skipping %s" , key.length (), key.c_str ());
5770
5770
it = consumer.m_toSync .erase (it);
5771
5771
continue ;
5772
5772
}
@@ -5791,7 +5791,7 @@ void NatMgr::doNatPoolTask(Consumer &consumer)
5791
5791
/* Ensure the ip range size is not more than 2, otherwise ignore */
5792
5792
if (nat_ip_range.size () > 2 )
5793
5793
{
5794
- SWSS_LOG_ERROR (" Invalid nat ip range size %lu , skipping %s" , nat_ip_range.size (), key.c_str ());
5794
+ SWSS_LOG_ERROR (" Invalid nat ip range size %zu , skipping %s" , nat_ip_range.size (), key.c_str ());
5795
5795
it = consumer.m_toSync .erase (it);
5796
5796
continue ;
5797
5797
}
@@ -5876,7 +5876,7 @@ void NatMgr::doNatPoolTask(Consumer &consumer)
5876
5876
/* Ensure the port range size is not more than 2, otherwise ignore */
5877
5877
if (nat_port_range.size () > 2 )
5878
5878
{
5879
- SWSS_LOG_ERROR (" Invalid nat port range size %lu , skipping %s" , nat_port_range.size (), key.c_str ());
5879
+ SWSS_LOG_ERROR (" Invalid nat port range size %zu , skipping %s" , nat_port_range.size (), key.c_str ());
5880
5880
it = consumer.m_toSync .erase (it);
5881
5881
continue ;
5882
5882
}
@@ -6094,15 +6094,15 @@ void NatMgr::doNatBindingTask(Consumer &consumer)
6094
6094
/* Ensure the key size is 1 otherwise ignore */
6095
6095
if (keys.size () != BINDING_TABLE_KEY_SIZE)
6096
6096
{
6097
- SWSS_LOG_ERROR (" Invalid key size %lu , skipping %s" , keys.size (), key.c_str ());
6097
+ SWSS_LOG_ERROR (" Invalid key size %zu , skipping %s" , keys.size (), key.c_str ());
6098
6098
it = consumer.m_toSync .erase (it);
6099
6099
continue ;
6100
6100
}
6101
6101
6102
6102
/* Ensure the Binding name length is not more than 32 otherwise ignore */
6103
6103
if (key.length () > 32 )
6104
6104
{
6105
- SWSS_LOG_ERROR (" Invalid binding name length - %lu , skipping %s" , key.length (), key.c_str ());
6105
+ SWSS_LOG_ERROR (" Invalid binding name length - %zu , skipping %s" , key.length (), key.c_str ());
6106
6106
it = consumer.m_toSync .erase (it);
6107
6107
continue ;
6108
6108
}
@@ -6226,7 +6226,7 @@ void NatMgr::doNatBindingTask(Consumer &consumer)
6226
6226
/* Ensure the Pool name length is not more than 32 otherwise ignore */
6227
6227
if (nat_pool.length () > 32 )
6228
6228
{
6229
- SWSS_LOG_ERROR (" Invalid pool name length - %lu , skipping %s" , nat_pool.length (), key.c_str ());
6229
+ SWSS_LOG_ERROR (" Invalid pool name length - %zu , skipping %s" , nat_pool.length (), key.c_str ());
6230
6230
it = consumer.m_toSync .erase (it);
6231
6231
continue ;
6232
6232
}
@@ -6604,13 +6604,13 @@ void NatMgr::doNatIpInterfaceTask(Consumer &consumer)
6604
6604
/* Ensure the key size is 2 or 1, otherwise ignore */
6605
6605
if ((keys.size () != L3_INTERFACE_KEY_SIZE) and (keys.size () != L3_INTERFACE_ZONE_SIZE))
6606
6606
{
6607
- SWSS_LOG_INFO (" Invalid key size %lu , skipping %s" , keys.size (), key.c_str ());
6607
+ SWSS_LOG_INFO (" Invalid key size %zu , skipping %s" , keys.size (), key.c_str ());
6608
6608
it = consumer.m_toSync .erase (it);
6609
6609
continue ;
6610
6610
}
6611
6611
else
6612
6612
{
6613
- SWSS_LOG_INFO (" Key size %lu for %s" , keys.size (), key.c_str ());
6613
+ SWSS_LOG_INFO (" Key size %zu for %s" , keys.size (), key.c_str ());
6614
6614
}
6615
6615
6616
6616
/* Ensure the key starts with "Vlan" or "Ethernet" or "PortChannel" or "Loopback", otherwise ignore */
@@ -6849,7 +6849,7 @@ void NatMgr::doNatIpInterfaceTask(Consumer &consumer)
6849
6849
}
6850
6850
else
6851
6851
{
6852
- SWSS_LOG_INFO (" Invalid key size %lu , skipping %s" , keys.size (), key.c_str ());
6852
+ SWSS_LOG_INFO (" Invalid key size %zu , skipping %s" , keys.size (), key.c_str ());
6853
6853
}
6854
6854
it = consumer.m_toSync .erase (it);
6855
6855
}
@@ -6935,7 +6935,7 @@ void NatMgr::doNatIpInterfaceTask(Consumer &consumer)
6935
6935
}
6936
6936
else
6937
6937
{
6938
- SWSS_LOG_INFO (" Invalid key size %lu , skipping %s" , keys.size (), key.c_str ());
6938
+ SWSS_LOG_INFO (" Invalid key size %zu , skipping %s" , keys.size (), key.c_str ());
6939
6939
}
6940
6940
it = consumer.m_toSync .erase (it);
6941
6941
}
@@ -6971,7 +6971,7 @@ void NatMgr::doNatAclTableTask(Consumer &consumer)
6971
6971
/* Ensure the key size is 1 otherwise ignore */
6972
6972
if (keys.size () != ACL_TABLE_KEY_SIZE)
6973
6973
{
6974
- SWSS_LOG_INFO (" Invalid key size %lu , skipping %s" , keys.size (), key.c_str ());
6974
+ SWSS_LOG_INFO (" Invalid key size %zu , skipping %s" , keys.size (), key.c_str ());
6975
6975
it = consumer.m_toSync .erase (it);
6976
6976
continue ;
6977
6977
}
@@ -7112,7 +7112,7 @@ void NatMgr::doNatAclRuleTask(Consumer &consumer)
7112
7112
/* Ensure the key size is 2 otherwise ignore */
7113
7113
if (keys.size () != ACL_RULE_TABLE_KEY_SIZE)
7114
7114
{
7115
- SWSS_LOG_INFO (" Invalid key size %lu , skipping %s" , keys.size (), key.c_str ());
7115
+ SWSS_LOG_INFO (" Invalid key size %zu , skipping %s" , keys.size (), key.c_str ());
7116
7116
it = consumer.m_toSync .erase (it);
7117
7117
continue ;
7118
7118
}
@@ -7239,7 +7239,7 @@ void NatMgr::doNatAclRuleTask(Consumer &consumer)
7239
7239
/* Ensure the port range size is valid, otherwise ignore */
7240
7240
if (port_range.size () != L4_PORT_RANGE_SIZE)
7241
7241
{
7242
- SWSS_LOG_INFO (" Invalid port range size %lu for Matching Port Range Field, skipping %s" , port_range.size (), key.c_str ());
7242
+ SWSS_LOG_INFO (" Invalid port range size %zu for Matching Port Range Field, skipping %s" , port_range.size (), key.c_str ());
7243
7243
isNatAclRuleNotValid = true ;
7244
7244
break ;
7245
7245
}
0 commit comments