[openib-general] [PATCH][MINOR] OpenSM/osm_sa_multipath_record.c: Fix endian of port GUID and indicate port number in some osm_log messages
Hal Rosenstock
halr at voltaire.com
Mon Jul 17 09:43:00 PDT 2006
OpenSM/osm_sa_multipath_record.c: Fix endian of port GUID and indicate
port number in some osm_log messages
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: opensm/osm_sa_multipath_record.c
===================================================================
--- opensm/osm_sa_multipath_record.c (revision 8549)
+++ opensm/osm_sa_multipath_record.c (working copy)
@@ -207,8 +207,8 @@ __osm_mpr_rcv_get_path_parms(
"path not found for PKEY = 0x%x\n"
"\t\tsrc %Lx dst %Lx\n",
required_pkey,
- osm_physp_get_port_guid( p_physp ),
- osm_physp_get_port_guid( p_dest_physp ) );
+ cl_ntoh64( osm_physp_get_port_guid( p_physp ) ),
+ cl_ntoh64( osm_physp_get_port_guid( p_dest_physp ) ) );
status = IB_NOT_FOUND;
goto Exit;
@@ -352,9 +352,11 @@ __osm_mpr_rcv_get_path_parms(
{
osm_log( p_rcv->p_log, OSM_LOG_DEBUG,
"__osm_mpr_rcv_get_path_parms: "
- "New smallest MTU = %u at intervening port 0x%016" PRIx64 "\n",
+ "New smallest MTU = %u at intervening port 0x%016" PRIx64
+ " port num 0x%X\n",
mtu,
- osm_physp_get_port_guid( p_physp ) );
+ cl_ntoh64( osm_physp_get_port_guid( p_physp ) ),
+ osm_physp_get_port_num( p_physp ) );
}
}
@@ -365,9 +367,11 @@ __osm_mpr_rcv_get_path_parms(
{
osm_log( p_rcv->p_log, OSM_LOG_DEBUG,
"__osm_mpr_rcv_get_path_parms: "
- "New smallest rate = %u at intervening port 0x%016" PRIx64 "\n",
+ "New smallest rate = %u at intervening port 0x%016" PRIx64
+ " port num 0x%X\n",
rate,
- osm_physp_get_port_guid( p_physp ) );
+ cl_ntoh64( osm_physp_get_port_guid( p_physp ) ),
+ osm_physp_get_port_num( p_physp ) );
}
}
@@ -399,7 +403,7 @@ __osm_mpr_rcv_get_path_parms(
"__osm_mpr_rcv_get_path_parms: Path not found for SL %d\n"
"\t\tin_port_num %d port_guid %Lx\n",
required_sl, in_port_num,
- osm_physp_get_port_guid( p_physp ) );
+ cl_ntoh64( osm_physp_get_port_guid( p_physp ) ) );
status = IB_NOT_FOUND;
goto Exit;
}
@@ -414,9 +418,11 @@ __osm_mpr_rcv_get_path_parms(
{
osm_log( p_rcv->p_log, OSM_LOG_DEBUG,
"__osm_mpr_rcv_get_path_parms: "
- "New smallest MTU = %u at intervening port 0x%016" PRIx64 "\n",
+ "New smallest MTU = %u at intervening port 0x%016" PRIx64
+ " port num 0x%X\n",
mtu,
- osm_physp_get_port_guid( p_physp ) );
+ cl_ntoh64( osm_physp_get_port_guid( p_physp ) ),
+ osm_physp_get_port_num( p_physp ) );
}
}
@@ -427,9 +433,11 @@ __osm_mpr_rcv_get_path_parms(
{
osm_log( p_rcv->p_log, OSM_LOG_DEBUG,
"__osm_mpr_rcv_get_path_parms: "
- "New smallest rate = %u at intervening port 0x%016" PRIx64 "\n",
+ "New smallest rate = %u at intervening port 0x%016" PRIx64
+ " port num 0x%X\n",
rate,
- osm_physp_get_port_guid( p_physp ) );
+ cl_ntoh64( osm_physp_get_port_guid( p_physp ) ),
+ osm_physp_get_port_num( p_physp ) );
}
}
@@ -449,7 +457,7 @@ __osm_mpr_rcv_get_path_parms(
"__osm_mpr_rcv_get_path_parms: "
"New smallest MTU = %u at destination port 0x%016" PRIx64 "\n",
mtu,
- osm_physp_get_port_guid( p_physp ) );
+ cl_ntoh64( osm_physp_get_port_guid( p_physp ) ) );
}
}
@@ -462,7 +470,7 @@ __osm_mpr_rcv_get_path_parms(
"__osm_mpr_rcv_get_path_parms: "
"New smallest rate = %u at destination port 0x%016" PRIx64 "\n",
rate,
- osm_physp_get_port_guid( p_physp ) );
+ cl_ntoh64( osm_physp_get_port_guid( p_physp ) ) );
}
}
More information about the general
mailing list