[ofw] [PATCH] DAPL v2.0: scm: add port number to error log during hca_open failures

Davis, Arlin R arlin.r.davis at intel.com
Wed Oct 26 14:10:03 PDT 2011


scm: add port number to error log during hca_open failures

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

diff --git a/dapl/openib_scm/device.c b/dapl/openib_scm/device.c
index 41fccdf..77c64e3 100644
--- a/dapl/openib_scm/device.c
+++ b/dapl/openib_scm/device.c
@@ -324,8 +324,9 @@ found:
 	if (ibv_query_port(hca_ptr->ib_hca_handle,
 			   (uint8_t) hca_ptr->port_num, &port_attr)) {
 		dapl_log(DAPL_DBG_TYPE_ERR,
-			 " open_hca: get lid ERR for %s, err=%s\n",
+			 " open_hca: get lid ERR for %s port=%d, err=%s\n",
 			 ibv_get_device_name(hca_ptr->ib_trans.ib_dev),
+			 hca_ptr->port_num,
 			 strerror(errno));
 		goto err;
 	} else {
-- 
1.7.3





More information about the ofw mailing list