diff mbox

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

Message ID E3280858FA94444CA49D2BA02341C983011BA209E7@orsmsx506.amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Arlin Davis Oct. 22, 2010, 8:15 p.m. UTC
None
diff mbox

Patch

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;
 }