[openib-general] Re: [PATCH] kDAPL: add some clarification to a few debug printks

James Lentini jlentini at netapp.com
Thu May 19 19:21:17 PDT 2005


Commited in revision 2421.

On Wed, 18 May 2005, Tom Duffy wrote:

tduffy> I was running into some issues and noticed that these printks were not
tduffy> very clear about where they were coming from.  So, adding a little more
tduffy> info.
tduffy> 
tduffy> Signed-off-by: Tom Duffy <tduffy at sun.com>
tduffy> 
tduffy> Index: linux-kernel/dat-provider/dapl_openib_qp.c
tduffy> ===================================================================
tduffy> --- linux-kernel/dat-provider/dapl_openib_qp.c	(revision 2382)
tduffy> +++ linux-kernel/dat-provider/dapl_openib_qp.c	(working copy)
tduffy> @@ -108,7 +108,8 @@ u32 dapl_ib_qp_alloc(DAPL_IA *ia_ptr, DA
tduffy>  	ep_ptr->qp_handle = ib_create_qp(ib_pd_handle, &qp_attr);
tduffy>  	if (IS_ERR(ep_ptr->qp_handle)) {
tduffy>  		ib_status = PTR_ERR(ep_ptr->qp_handle);
tduffy> -		dapl_dbg_log(DAPL_DBG_TYPE_ERR, " failed code = %d\n",
tduffy> +		dapl_dbg_log(DAPL_DBG_TYPE_ERR,
tduffy> +			     " dapl_ib_qp_alloc: ib_create_qp failed = %d\n",
tduffy>  			     ib_status);
tduffy>  		return dapl_ib_status_convert(ib_status);
tduffy>  	}
tduffy> @@ -197,8 +198,9 @@ ib_cq_handle_t dapl_get_dto_cq(DAPL_IA *
tduffy>  			ib_status =
tduffy>  			    PTR_ERR(ia_ptr->hca_ptr->ib_trans.
tduffy>  				    null_ib_cq_handle);
tduffy> -			dapl_dbg_log(DAPL_DBG_TYPE_ERR, " failed code = %d\n",
tduffy> -				     ib_status);
tduffy> +			dapl_dbg_log(DAPL_DBG_TYPE_ERR,
tduffy> +				     " dapl_get_dto_cq: ib_create_cq failed "
tduffy> +				     "= %d\n", ib_status);
tduffy>  			ia_ptr->hca_ptr->ib_trans.null_ib_cq_handle =
tduffy>  			    IB_INVALID_HANDLE;
tduffy>  		}
tduffy> 



More information about the general mailing list