From d4fd87c6aa4dc7187d6d25e0ad7896f0b8997839 Mon Sep 17 00:00:00 2001 From: Sabareesh Kumar Anandan Date: Mon, 7 Dec 2020 20:03:40 +0530 Subject: [PATCH] [fgnhgorch] Change format specifier %lu to %zu for size_t Signed-off-by: Sabareesh Kumar Anandan --- orchagent/fgnhgorch.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/orchagent/fgnhgorch.cpp b/orchagent/fgnhgorch.cpp index 6e6ae980f3..38ee9460c5 100644 --- a/orchagent/fgnhgorch.cpp +++ b/orchagent/fgnhgorch.cpp @@ -473,7 +473,7 @@ bool FgNhgOrch::setActiveBankHashBucketChanges(FGNextHopGroupEntry *syncd_fg_rou } else if (bank_fgnhg_map->at(round_robin_nh).size() > exp_bucket_size) { - SWSS_LOG_WARN("Unexpected bucket size for nh %s, size %lu, exp_size %d", + SWSS_LOG_WARN("Unexpected bucket size for nh %s, size %zu, exp_size %d", round_robin_nh.to_string().c_str(), bank_fgnhg_map->at(round_robin_nh).size(), exp_bucket_size); } @@ -492,7 +492,7 @@ bool FgNhgOrch::setActiveBankHashBucketChanges(FGNextHopGroupEntry *syncd_fg_rou } else if (bank_fgnhg_map->at(round_robin_nh).size() > exp_bucket_size +1) { - SWSS_LOG_WARN("Unexpected bucket size for nh %s, size %lu, exp_size %d", + SWSS_LOG_WARN("Unexpected bucket size for nh %s, size %zu, exp_size %d", round_robin_nh.to_string().c_str(), bank_fgnhg_map->at(round_robin_nh).size(), exp_bucket_size + 1); } @@ -573,7 +573,7 @@ bool FgNhgOrch::setActiveBankHashBucketChanges(FGNextHopGroupEntry *syncd_fg_rou } else if (map_entry->size() < exp_bucket_size) { - SWSS_LOG_WARN("Unexpected bucket size for nh %s, size %lu, exp_size %d", + SWSS_LOG_WARN("Unexpected bucket size for nh %s, size %zu, exp_size %d", it->to_string().c_str(), map_entry->size(), exp_bucket_size); it++; } @@ -593,7 +593,7 @@ bool FgNhgOrch::setActiveBankHashBucketChanges(FGNextHopGroupEntry *syncd_fg_rou } else if (map_entry->size() < exp_bucket_size) { - SWSS_LOG_WARN("Unexpected bucket size for nh %s, size %lu, exp_size %d", + SWSS_LOG_WARN("Unexpected bucket size for nh %s, size %zu, exp_size %d", it->to_string().c_str(), map_entry->size(), exp_bucket_size + 1); it++; }