From 4d5af85b83d78c69e9566ad45dd8f0990fbe2d69 Mon Sep 17 00:00:00 2001 From: sleybo Date: Tue, 14 Nov 2006 15:29:32 +0000 Subject: [PATCH] [IPOIB] improve prints in case of completion with error git-svn-id: svn://openib.tc.cornell.edu/gen1@542 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/ulp/ipoib/kernel/ipoib_port.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/trunk/ulp/ipoib/kernel/ipoib_port.c b/trunk/ulp/ipoib/kernel/ipoib_port.c index 58ba7ce1..cb85fba5 100644 --- a/trunk/ulp/ipoib/kernel/ipoib_port.c +++ b/trunk/ulp/ipoib/kernel/ipoib_port.c @@ -1856,8 +1856,9 @@ __recv_mgr_filter( if( p_wc->status != IB_WCS_WR_FLUSHED_ERR ) { IPOIB_PRINT( TRACE_LEVEL_ERROR, IPOIB_DBG_ERROR, - ("Failed completion %s\n", - p_port->p_adapter->p_ifc->get_wc_status_str( p_wc->status )) ); + ("Failed completion %s (vendor specific %#x)\n", + p_port->p_adapter->p_ifc->get_wc_status_str( p_wc->status ), + (int)p_wc->vendor_specific) ); ipoib_inc_recv_stat( p_port->p_adapter, IP_STAT_ERROR, 0 ); } else @@ -3917,8 +3918,9 @@ __send_cb( default: IPOIB_PRINT( TRACE_LEVEL_ERROR, IPOIB_DBG_ERROR, - ("Send failed with %s\n", - p_port->p_adapter->p_ifc->get_wc_status_str( p_wc->status )) ); + ("Send failed with %s (vendor specific %#x)\n", + p_port->p_adapter->p_ifc->get_wc_status_str( p_wc->status ), + (int)p_wc->vendor_specific) ); ipoib_inc_send_stat( p_port->p_adapter, IP_STAT_ERROR, 0 ); NdisMSendComplete( p_port->p_adapter->h_adapter, p_packet, NDIS_STATUS_FAILURE ); -- 2.41.0