[ofw] [PATCH] DAPL v2.0: common: modify debug in dat_evd_dequeue to reduce noise, only output on non-empty

Davis, Arlin R arlin.r.davis at intel.com
Fri Oct 22 13:15:51 PDT 2010


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

diff --git a/dapl/common/dapl_evd_dequeue.c b/dapl/common/dapl_evd_dequeue.c
index 7632fe1..f31e497 100644
--- a/dapl/common/dapl_evd_dequeue.c
+++ b/dapl/common/dapl_evd_dequeue.c
@@ -69,9 +69,6 @@ DAT_RETURN DAT_API dapl_evd_dequeue(IN DAT_EVD_HANDLE evd_handle,
 	DAT_EVENT *local_event;
 	DAT_RETURN dat_status;
 
-	dapl_dbg_log(DAPL_DBG_TYPE_API,
-		     "dapl_evd_dequeue (%p, %p)\n", evd_handle, event);
-
 	evd_ptr = (DAPL_EVD *) evd_handle;
 	dat_status = DAT_SUCCESS;
 
@@ -125,10 +122,14 @@ DAT_RETURN DAT_API dapl_evd_dequeue(IN DAT_EVD_HANDLE evd_handle,
 		DAPL_CNTR(evd_ptr, DCNT_EVD_DEQUEUE_NOT_FOUND);
 	}
 
+#ifdef DAPL_DBG
+	if (dat_status == DAT_SUCCESS) 
+		dapl_dbg_log(DAPL_DBG_TYPE_EVD,
+			     "dapl_evd_dequeue() Event(%p) = 0x%x\n",
+			     event->evd_handle, event->event_number);
+#endif
 	dapl_os_unlock(&evd_ptr->header.lock);
       bail:
-	dapl_dbg_log(DAPL_DBG_TYPE_RTN,
-		     "dapl_evd_dequeue () returns 0x%x\n", dat_status);
 
 	return dat_status;
 }
-- 
1.7.3






More information about the ofw mailing list