[openib-general] [PATCH] Opensm - add node record dumping

Yael Kalka yael at mellanox.co.il
Tue Dec 6 04:02:49 PST 2005


Hi Hal,

The following code exists at least in several of the osm_sa_*_record.c 
files, but is missing in the osm_sa_node_record.c. 
When running with debug level - add a dump of the node record sent 
in the request.

Thanks,
Yael

Signed-off-by:  Yael Kalka <yael at mellanox.co.il>

Index: opensm/osm_sa_node_record.c
===================================================================
--- opensm/osm_sa_node_record.c (revision 4319)
+++ opensm/osm_sa_node_record.c (working copy)
@@ -467,6 +467,9 @@ osm_nr_rcv_process(
     goto Exit;
   }
 
+  if( osm_log_is_active( p_rcv->p_log, OSM_LOG_DEBUG ) )
+    osm_dump_node_record( p_rcv->p_log, p_rcvd_rec, OSM_LOG_DEBUG );
+
   cl_qlist_init( &rec_list );
 
   context.p_rcvd_rec    = p_rcvd_rec;




More information about the general mailing list