Skip to content

Commit

Permalink
[fgnhgorch] Change format specifier %lu to %zu for size_t (sonic-net#…
Browse files Browse the repository at this point in the history
…1529)

Changed format specifier %lu to %zu for size_t to avoid compilation warnings in arm 32-bit

Signed-off-by: Sabareesh Kumar Anandan <sanandan@marvell.com>
  • Loading branch information
Sabareesh-Kumar-Anandan committed Dec 10, 2020
1 parent 1c8b953 commit cf27721
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions orchagent/fgnhgorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down Expand Up @@ -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++;
}
Expand All @@ -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++;
}
Expand Down

0 comments on commit cf27721

Please sign in to comment.