diff mbox

dapl-2.0: common: dapls_evd_dto_wait() dbg message should print status and not errno

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

Commit Message

Arlin Davis Jan. 21, 2011, 2:50 a.m. UTC
None
diff mbox

Patch

diff --git a/dapl/openib_common/cq.c b/dapl/openib_common/cq.c
index f475d1d..f03400f 100644
--- a/dapl/openib_common/cq.c
+++ b/dapl/openib_common/cq.c
@@ -321,7 +321,7 @@  dapls_evd_dto_wait(IN DAPL_EVD * evd_ptr, IN uint32_t timeout)
 
 	dapl_dbg_log(DAPL_DBG_TYPE_UTIL,
 		     " cq_object_wait: RET evd %p ibv_cq %p %s\n",
-		     evd_ptr, ibv_cq, strerror(errno));
+		     evd_ptr, ibv_cq, strerror(status));
 
 	return dapl_convert_errno(status, "cq_wait_object_wait");
 }