[openib-general] [PATCH TRIVIAL] opensm: GUID net to host conversion in log prints

Sasha Khapyorsky sashak at voltaire.com
Sun Aug 20 09:27:20 PDT 2006


Print GUID value in host byte order.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---

 osm/opensm/osm_sa_path_record.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/osm/opensm/osm_sa_path_record.c b/osm/opensm/osm_sa_path_record.c
index 67df71a..36e9061 100644
--- a/osm/opensm/osm_sa_path_record.c
+++ b/osm/opensm/osm_sa_path_record.c
@@ -415,7 +415,7 @@ __osm_pr_rcv_get_path_parms(
                "__osm_pr_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 )) );
     }
   }
 
@@ -428,7 +428,7 @@ __osm_pr_rcv_get_path_parms(
                "__osm_pr_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