OpenSM/main.c: Fix endian for GUID in osm_log debug message and add port
number to same debug message
Signed-off-by: Dale Purdy <[EMAIL PROTECTED]>
Signed-off-by: Hal Rosenstock <[EMAIL PROTECTED]>
diff --git a/osm/opensm/main.c b/osm/opensm/main.c
index 9186576..9fa297a 100644
--- a/osm/opensm/main.c
+++ b/osm/opensm/main.c
@@ -486,7 +486,7 @@ parse_ignore_guids_file(IN char *guids_f
line_num++;
p_c = line;
while ( (*p_c == ' ') && (*p_c != '\0')) p_c++;
- port_guid = cl_hton64( strtoull( p_c, &p_ec, 16 ) );
+ port_guid = strtoull( p_c, &p_ec, 16 );
if (p_ec == p_c)
{
osm_log( &p_osm->log, OSM_LOG_ERROR,
@@ -511,11 +511,11 @@ parse_ignore_guids_file(IN char *guids_f
}
/* ok insert it */
- osm_port_prof_set_ignored_port(&p_osm->subn, port_guid, port_num);
+ osm_port_prof_set_ignored_port(&p_osm->subn, cl_hton64( port_guid ),
port_num);
osm_log( &p_osm->log, OSM_LOG_DEBUG,
"parse_ignore_guids_file: "
- "Inserted Port: 0x%" PRIx64 " into ignored guids list\n" ,
- port_guid
+ "Inserted Port: 0x%" PRIx64 " PortNum: 0x%X into ignored guids
list\n" ,
+ port_guid, port_num
);
}
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general