[IPOIB] improve prints in case of completion with error
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 14 Nov 2006 15:29:32 +0000 (15:29 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 14 Nov 2006 15:29:32 +0000 (15:29 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@542 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_port.c

index 58ba7ce..cb85fba 100644 (file)
@@ -1856,8 +1856,9 @@ __recv_mgr_filter(
                        if( p_wc->status != IB_WCS_WR_FLUSHED_ERR )\r
                        {\r
                                IPOIB_PRINT( TRACE_LEVEL_ERROR, IPOIB_DBG_ERROR,\r
-                                       ("Failed completion %s\n",\r
-                                       p_port->p_adapter->p_ifc->get_wc_status_str( p_wc->status )) );\r
+                                       ("Failed completion %s  (vendor specific %#x)\n",\r
+                                       p_port->p_adapter->p_ifc->get_wc_status_str( p_wc->status ),\r
+                                       (int)p_wc->vendor_specific) );\r
                                ipoib_inc_recv_stat( p_port->p_adapter, IP_STAT_ERROR, 0 );\r
                        }\r
                        else\r
@@ -3917,8 +3918,9 @@ __send_cb(
 \r
                        default:\r
                                IPOIB_PRINT( TRACE_LEVEL_ERROR, IPOIB_DBG_ERROR,\r
-                                       ("Send failed with %s\n",\r
-                                       p_port->p_adapter->p_ifc->get_wc_status_str( p_wc->status )) );\r
+                                       ("Send failed with %s (vendor specific %#x)\n",\r
+                                       p_port->p_adapter->p_ifc->get_wc_status_str( p_wc->status ),\r
+                                       (int)p_wc->vendor_specific) );\r
                                ipoib_inc_send_stat( p_port->p_adapter, IP_STAT_ERROR, 0 );\r
                                NdisMSendComplete( p_port->p_adapter->h_adapter,\r
                                        p_packet, NDIS_STATUS_FAILURE );\r