[IPoIB NDIS 6.0 CM] Tracing facilities (mlnx 5208)
[mirror/winof/.git] / ulp / ipoib_NDIS6_CM / kernel / ipoib_adapter.cpp
index c87ef53..7c9eebd 100644 (file)
@@ -423,6 +423,9 @@ __ipoib_pnp_reg(
         * completes.\r
         */\r
        cl_obj_ref( &p_adapter->obj );\r
+       IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
+                               ("[%p] Adapter refcount raised to %d\n", p_adapter, p_adapter->obj.ref_cnt));\r
+\r
 \r
        IPOIB_EXIT( IPOIB_DBG_INIT );\r
        return status;\r
@@ -447,7 +450,11 @@ __adapter_destroying(
         */\r
        if( p_adapter->h_pnp )\r
        {\r
+               IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
+                               ("Adapter[%p] has refcnt= %d\n", p_adapter, p_adapter->obj.ref_cnt));\r
                p_adapter->p_ifc->dereg_pnp( p_adapter->h_pnp, (ib_pfn_destroy_cb_t) cl_obj_deref );\r
+               IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
+                               ("Adapter[%p] refcnt decremented to %d\n", p_adapter, p_adapter->obj.ref_cnt));\r
                p_adapter->h_pnp = NULL;\r
        }\r
 \r
@@ -1055,6 +1062,8 @@ __ipoib_adapter_reset(
 \r
        /* Dereference the adapter since the previous registration is now gone. */\r
        cl_obj_deref( &p_adapter->obj );\r
+       IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
+                       ("Adapter[%p] refcnt decremented to %d\n", p_adapter, p_adapter->obj.ref_cnt));\r
 \r
        KeReleaseMutex( &p_adapter->mutex, FALSE );\r
 \r