Skip to content

Commit

Permalink
[routeorch] more build error fixes when compiling for armhf (32-bit) (s…
Browse files Browse the repository at this point in the history
…onic-net#1563)

Changed format specifiers to avoid compilation errors in arm 32-bit

**What I did**
This commit modifies various SWSS_LOG calls to use the correct format specifier

**Why I did it**
This fixes a build break when compiling for ARM 32-bit (armhf)

**How I verified it**
Successfully built the sonic-marvell-armhf.bin image
  • Loading branch information
dflynn-Nokia authored Dec 22, 2020
1 parent cadf28f commit ef41c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/routeorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ bool RouteOrch::createRemoteVtep(sai_object_id_t vrf_id, const NextHopKey &nextH
{
ip_refcnt = vtep_ptr->getDipTunnelIPRefCnt(nextHop.ip_address.to_string());
}
SWSS_LOG_INFO("Routeorch Add Remote VTEP %s, VNI %d, VR_ID %lx, IP ref_cnt %d",
SWSS_LOG_INFO("Routeorch Add Remote VTEP %s, VNI %d, VR_ID %" PRIx64 ", IP ref_cnt %d",
nextHop.ip_address.to_string().c_str(), nextHop.vni, vrf_id, ip_refcnt);
return status;
}
Expand All @@ -1783,7 +1783,7 @@ bool RouteOrch::deleteRemoteVtep(sai_object_id_t vrf_id, const NextHopKey &nextH
ip_refcnt = vtep_ptr->getDipTunnelIPRefCnt(nextHop.ip_address.to_string());
}

SWSS_LOG_INFO("Routeorch Del Remote VTEP %s, VNI %d, VR_ID %lx, IP ref_cnt %d",
SWSS_LOG_INFO("Routeorch Del Remote VTEP %s, VNI %d, VR_ID %" PRIx64 ", IP ref_cnt %d",
nextHop.ip_address.to_string().c_str(), nextHop.vni, vrf_id, ip_refcnt);
return status;
}
Expand Down

0 comments on commit ef41c4e

Please sign in to comment.