[core] Improved error message. (mlnx 5511)
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 26 Jan 2010 10:09:53 +0000 (10:09 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 26 Jan 2010 10:09:53 +0000 (10:09 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2683 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/complib/kernel/cl_pnp_po.c

index 93e3e91..b4257ef 100644 (file)
@@ -427,8 +427,15 @@ __start(
        CL_ENTER( CL_DBG_PNP, p_ext->dbg_lvl );\r
 \r
        status = p_ext->vfptr_pnp_po->pfn_start( p_dev_obj, p_irp, p_action );\r
-       if( NT_SUCCESS( status ) )\r
+       if( NT_SUCCESS( status ) ) \r
+       {\r
                cl_set_pnp_state( p_ext, Started );\r
+       } \r
+       else\r
+       {\r
+               CL_TRACE( CL_DBG_ERROR, p_ext->dbg_lvl, \r
+                       ("p_ext->vfptr_pnp_po->pfn_start returned %08x. \n", status) );\r
+       }\r
 \r
        CL_EXIT( CL_DBG_PNP, p_ext->dbg_lvl );\r
        return status;\r