[ofw] [PATCH 10/13] DAPL v2.0: common: change dbg level on CR callback if not listening on SP

Davis, Arlin R arlin.r.davis at intel.com
Fri Jan 13 15:55:45 PST 2012


Change from from CM to CM_WARN level and include in non-debug build.

Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
 dapl/common/dapl_cr_callback.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dapl/common/dapl_cr_callback.c b/dapl/common/dapl_cr_callback.c
index 1f6dd6d..8bfbb3e 100644
--- a/dapl/common/dapl_cr_callback.c
+++ b/dapl/common/dapl_cr_callback.c
@@ -152,8 +152,8 @@ void dapls_cr_callback(IN dp_ib_cm_handle_t ib_cm_handle, IN const ib_cm_events_
 			dapl_os_lock(&sp_ptr->header.lock);
 			if (sp_ptr->listening == DAT_FALSE) {
 				dapl_os_unlock(&sp_ptr->header.lock);
-				dapl_dbg_log(DAPL_DBG_TYPE_CM,
-					     "---> dapls_cr_callback: conn event on down SP\n");
+				dapl_log(DAPL_DBG_TYPE_CM_WARN,
+					 " cr_callback: CR event on non-listening SP\n");
 				(void)dapls_ib_reject_connection(ib_cm_handle,
 								 DAT_CONNECTION_EVENT_UNREACHABLE,
 								 0, NULL);
-- 
1.7.3





More information about the ofw mailing list