[openib-general] {PATCH][MINOR] OpenSM/osm_sa_path_record.c: In __osm_pr_rcv_get_path_parms, fix endian of port GUID and indicate port number in some osm_log messages

Hal Rosenstock halr at voltaire.com
Mon Jul 17 08:09:22 PDT 2006


OpenSM/osm_sa_path_record.c: In __osm_pr_rcv_get_path_parms, 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_path_record.c
===================================================================
--- opensm/osm_sa_path_record.c	(revision 8540)
+++ opensm/osm_sa_path_record.c	(working copy)
@@ -322,9 +322,11 @@ __osm_pr_rcv_get_path_parms(
       {
         osm_log( p_rcv->p_log, OSM_LOG_DEBUG,
                  "__osm_pr_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 ) );
       }
     }
 
@@ -335,9 +337,11 @@ __osm_pr_rcv_get_path_parms(
       {
         osm_log( p_rcv->p_log, OSM_LOG_DEBUG,
                  "__osm_pr_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 ) );
       }
     }
 
@@ -369,9 +373,11 @@ __osm_pr_rcv_get_path_parms(
       {
         osm_log( p_rcv->p_log, OSM_LOG_DEBUG,
                  "__osm_pr_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 ) );
       }
     }
 
@@ -382,9 +388,11 @@ __osm_pr_rcv_get_path_parms(
       {
         osm_log( p_rcv->p_log, OSM_LOG_DEBUG,
                  "__osm_pr_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 ) );
       }
     }
 







More information about the general mailing list