@@ -4348,7 +4348,7 @@ bool PortsOrch::initGearboxPort(Port &port)
4348
4348
{
4349
4349
if (m_gearboxInterfaceMap.find (port.m_index ) != m_gearboxInterfaceMap.end ())
4350
4350
{
4351
- SWSS_LOG_NOTICE (" BOX: port_id:0x%lx index:%d alias:%s" , port.m_port_id , port.m_index , port.m_alias .c_str ());
4351
+ SWSS_LOG_NOTICE (" BOX: port_id:0x%" PRIx64 " index:%d alias:%s" , port.m_port_id , port.m_index , port.m_alias .c_str ());
4352
4352
4353
4353
phy_id = m_gearboxInterfaceMap[port.m_index ].phy_id ;
4354
4354
phyOidStr = m_gearboxPhyMap[phy_id].phy_oid ;
@@ -4405,11 +4405,11 @@ bool PortsOrch::initGearboxPort(Port &port)
4405
4405
status = sai_port_api->create_port (&systemPort, phyOid, static_cast <uint32_t >(attrs.size ()), attrs.data ());
4406
4406
if (status != SAI_STATUS_SUCCESS)
4407
4407
{
4408
- SWSS_LOG_ERROR (" BOX: Failed to create Gearbox system-side port for alias:%s port_id:0x%lx index:%d status:%d" ,
4408
+ SWSS_LOG_ERROR (" BOX: Failed to create Gearbox system-side port for alias:%s port_id:0x%" PRIx64 " index:%d status:%d" ,
4409
4409
port.m_alias .c_str (), port.m_port_id , port.m_index , status);
4410
4410
return false ;
4411
4411
}
4412
- SWSS_LOG_NOTICE (" BOX: Created Gearbox system-side port 0x%lx for alias:%s index:%d" ,
4412
+ SWSS_LOG_NOTICE (" BOX: Created Gearbox system-side port 0x%" PRIx64 " for alias:%s index:%d" ,
4413
4413
systemPort, port.m_alias .c_str (), port.m_index );
4414
4414
4415
4415
/* Create LINE-SIDE port */
@@ -4488,11 +4488,11 @@ bool PortsOrch::initGearboxPort(Port &port)
4488
4488
status = sai_port_api->create_port (&linePort, phyOid, static_cast <uint32_t >(attrs.size ()), attrs.data ());
4489
4489
if (status != SAI_STATUS_SUCCESS)
4490
4490
{
4491
- SWSS_LOG_ERROR (" BOX: Failed to create Gearbox line-side port for alias:%s port_id:0x%lx index:%d status:%d" ,
4491
+ SWSS_LOG_ERROR (" BOX: Failed to create Gearbox line-side port for alias:%s port_id:0x%" PRIx64 " index:%d status:%d" ,
4492
4492
port.m_alias .c_str (), port.m_port_id , port.m_index , status);
4493
4493
return false ;
4494
4494
}
4495
- SWSS_LOG_NOTICE (" BOX: Created Gearbox line-side port 0x%lx for alias:%s index:%d" ,
4495
+ SWSS_LOG_NOTICE (" BOX: Created Gearbox line-side port 0x%" PRIx64 " for alias:%s index:%d" ,
4496
4496
linePort, port.m_alias .c_str (), port.m_index );
4497
4497
4498
4498
/* Connect SYSTEM-SIDE to LINE-SIDE */
@@ -4508,11 +4508,11 @@ bool PortsOrch::initGearboxPort(Port &port)
4508
4508
status = sai_port_api->create_port_connector (&connector, phyOid, static_cast <uint32_t >(attrs.size ()), attrs.data ());
4509
4509
if (status != SAI_STATUS_SUCCESS)
4510
4510
{
4511
- SWSS_LOG_ERROR (" BOX: Failed to connect Gearbox system-side:0x%lx to line-side:0x%lx ; status:%d" , systemPort, linePort, status);
4511
+ SWSS_LOG_ERROR (" BOX: Failed to connect Gearbox system-side:0x%" PRIx64 " to line-side:0x%" PRIx64 " ; status:%d" , systemPort, linePort, status);
4512
4512
return false ;
4513
4513
}
4514
4514
4515
- SWSS_LOG_NOTICE (" BOX: Connected Gearbox ports; system-side:0x%lx to line-side:0x%lx " , systemPort, linePort);
4515
+ SWSS_LOG_NOTICE (" BOX: Connected Gearbox ports; system-side:0x%" PRIx64 " to line-side:0x%" PRIx64 , systemPort, linePort);
4516
4516
m_gearboxPortListLaneMap[port.m_port_id ] = make_tuple (systemPort, linePort);
4517
4517
}
4518
4518
}
0 commit comments