[openib-general] [PATCH TRIVIAL] opensm: better log message.

Sasha Khapyorsky sashak at voltaire.com
Sun Dec 17 04:50:52 PST 2006


Better log message for mcrecord dumping in __osm_mcmr_rcv_leave_mgrp().

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 osm/opensm/osm_sa_mcmember_record.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/osm/opensm/osm_sa_mcmember_record.c b/osm/opensm/osm_sa_mcmember_record.c
index 31d1fb5..3fec8b9 100644
--- a/osm/opensm/osm_sa_mcmember_record.c
+++ b/osm/opensm/osm_sa_mcmember_record.c
@@ -1418,8 +1418,11 @@ __osm_mcmr_rcv_leave_mgrp(
 
   mcmember_rec = *p_recvd_mcmember_rec;
 
-  if ( osm_log_is_active( p_rcv->p_log, OSM_LOG_DEBUG ) )
+  if ( osm_log_is_active( p_rcv->p_log, OSM_LOG_DEBUG ) ) {
+    osm_log( p_rcv->p_log, OSM_LOG_DEBUG,
+             "__osm_mcmr_rcv_leave_mgrp: Dump of record\n" );
     osm_dump_mc_record( p_rcv->p_log, &mcmember_rec, OSM_LOG_DEBUG );
+  }
 
   CL_PLOCK_EXCL_ACQUIRE(p_rcv->p_lock);
   status = __get_mgrp_by_mgid(p_rcv,p_recvd_mcmember_rec, &p_mgrp);
-- 
1.4.4.1.gbfd3





More information about the general mailing list