[IPoIB NDIS 6.0 CM] Tracing facilities (mlnx 5208)
[mirror/winof/.git] / ulp / ipoib_NDIS6_CM / kernel / ipoib_endpoint.h
index d6aea73..844a81f 100644 (file)
@@ -195,6 +195,10 @@ ipoib_endpt_ref(
        CL_ASSERT( p_endpt );\r
 \r
        cl_obj_ref( &p_endpt->obj );\r
+#if DBG\r
+       IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
+                               ("[%p] Endpt refcount raised to %d\n", p_endpt, p_endpt->obj.ref_cnt));\r
+#endif\r
        /*\r
         * Anytime we reference the endpoint, we're either receiving data\r
         * or trying to send data to that endpoint.  Clear the expired flag\r
@@ -208,6 +212,10 @@ ipoib_endpt_deref(
        IN                              ipoib_endpt_t* const            p_endpt )\r
 {\r
        cl_obj_deref( &p_endpt->obj );\r
+#if DBG\r
+       IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
+                               ("[%p] Endpt refcount decremented to %d\n", p_endpt, p_endpt->obj.ref_cnt));\r
+#endif\r
 }\r
 \r
 \r