Skip to content

Commit

Permalink
[vxlanorch] Use PRI instead of %l to avoid warnings in 32-bit arch (s…
Browse files Browse the repository at this point in the history
…onic-net#1539)

Signed-off-by: Sabareesh Kumar Anandan <[email protected]>
  • Loading branch information
Sabareesh-Kumar-Anandan authored Dec 12, 2020
1 parent 14d8c5f commit 40ab75c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions orchagent/vxlanorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ create_tunnel(
if (ids->tunnel_decap_id[i] != SAI_NULL_OBJECT_ID)
{
map_list[num_map] = ids->tunnel_decap_id[i];
SWSS_LOG_INFO("create_tunnel:maplist[%d]=0x%lx",num_map,map_list[num_map]);
SWSS_LOG_INFO("create_tunnel:maplist[%d]=0x%" PRIx64 "",num_map,map_list[num_map]);
num_map++;
}
}
Expand All @@ -297,7 +297,7 @@ create_tunnel(
if (ids->tunnel_encap_id[i] != SAI_NULL_OBJECT_ID)
{
emap_list[num_emap] = ids->tunnel_encap_id[i];
SWSS_LOG_NOTICE("create_tunnel:encapmaplist[%d]=0x%lx",num_emap,emap_list[num_emap]);
SWSS_LOG_NOTICE("create_tunnel:encapmaplist[%d]=0x%" PRIx64 "",num_emap,emap_list[num_emap]);
num_emap++;
}
}
Expand Down Expand Up @@ -1821,7 +1821,7 @@ bool VxlanTunnelMapOrch::delOperation(const Request& request)
}

vector<string> map_entries = tokenize(tunnel_map_entry_name, '_');
SWSS_LOG_INFO("Vxlan tunnel map '%s' size %ld", tunnel_map_entry_name.c_str(),
SWSS_LOG_INFO("Vxlan tunnel map '%s' size %zu", tunnel_map_entry_name.c_str(),
map_entries.size());
if (map_entries.size() == 3)
{
Expand Down Expand Up @@ -1953,7 +1953,7 @@ bool VxlanVrfMapOrch::delOperation(const Request& request)
*/
entry = vxlan_vrf_table_[full_map_entry_name];

SWSS_LOG_NOTICE("VxlanVrfMapOrch Vxlan tunnel VRF encap entry '%lx' decap entry '0x%lx'",
SWSS_LOG_NOTICE("VxlanVrfMapOrch Vxlan tunnel VRF encap entry '%" PRIx64 "' decap entry '0x%" PRIx64 "'",
entry.encap_id, entry.decap_id);

remove_tunnel_map_entry(entry.encap_id);
Expand Down

0 comments on commit 40ab75c

Please sign in to comment.