[WSD] Enhanced control over debug output.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 27 Sep 2005 00:38:40 +0000 (00:38 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 27 Sep 2005 00:38:40 +0000 (00:38 +0000)
Signed-off-by: Fab Tillier (ftillier@silverstorm.com)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@92 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/wsd/user/ibsp_mem.c

index 6ed5122..007e79b 100644 (file)
@@ -151,7 +151,7 @@ ib_register_memory(
        node->type.length = len;\r
        node->type.access_ctrl = access_ctrl;\r
 \r
-       IBSP_TRACE( IBSP_DBG_MEM, ("pinning memory node %p\n", node) );\r
+       IBSP_TRACE2( IBSP_DBG_MEM, ("pinning memory node %p\n", node) );\r
        status = ib_reg_mem( pd, &node->type, &node->lkey, &node->rkey, &node->mr_handle );\r
 \r
        if( status )\r
@@ -258,17 +258,20 @@ ib_deregister_all_mr(
        IBSP_ENTER( IBSP_DBG_MEM );\r
 \r
        cl_spinlock_acquire( &mem_list->mutex );\r
+       IBSP_TRACE1( IBSP_DBG_MEM,\r
+               ("%d registrations.\n", cl_qlist_count( &mem_list->list )) );\r
 \r
        while( (item = cl_qlist_remove_head( &mem_list->list )) != cl_qlist_end( &mem_list->list ) )\r
        {\r
                struct memory_node *node = PARENT_STRUCT(item, struct memory_node, item);\r
                ib_api_status_t status;\r
 \r
-               IBSP_TRACE( IBSP_DBG_MEM, ("unpinning ,memory node node %p\n", node) );\r
+               IBSP_TRACE2( IBSP_DBG_MEM, ("unpinning ,memory node node %p\n", node) );\r
                status = ib_dereg_mr( node->mr_handle );\r
                if( status )\r
                {\r
-                       IBSP_ERROR( ("ib_dereg_mem failed (%d)\n", status) );\r
+                       IBSP_ERROR(\r
+                               ("ib_dereg_mem returned %s\n", ib_get_err_str( status )) );\r
                }\r
                else\r
                {\r