[IBBUS,IPoIB] add debug prints. [mlnx: 4838]
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 26 Oct 2009 10:10:01 +0000 (10:10 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 26 Oct 2009 10:10:01 +0000 (10:10 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2511 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/bus/kernel/bus_driver.c
core/bus/kernel/bus_pnp.c
ulp/ipoib/kernel/ipoib_driver.c

index 79f9f87..bee7eb5 100644 (file)
@@ -1017,8 +1017,8 @@ bus_drv_unload(
        WPP_CLEANUP(p_driver_obj);\r
 #endif\r
 \r
-       BUS_EXIT( BUS_DBG_DRV );\r
-       \r
+       BUS_TRACE_EXIT( BUS_DBG_DRV, \r
+               ("=====> IBBUS: bus_drv_unload exited\n") );\r
 }\r
 \r
 \r
@@ -1078,6 +1078,7 @@ DriverEntry(
        memset(  __out_bcount(sizeof(g_bus_filters)) (void*)g_bus_filters, 0,\r
                        sizeof(g_bus_filters) );\r
        \r
-       BUS_EXIT( BUS_DBG_DRV );\r
+       BUS_TRACE_EXIT( BUS_DBG_DRV, \r
+               ("=====> IBBUS: Driver exited\n") );\r
        return STATUS_SUCCESS;\r
 }\r
index bb4088d..2a5276d 100644 (file)
@@ -516,6 +516,8 @@ fdo_start(
                ASSERT( NT_SUCCESS( status ) );\r
        }\r
 \r
+       BUS_TRACE( BUS_DBG_DRV, \r
+               ("IBBUS started \n") );\r
        CL_PRINT_TO_EVENT_LOG( p_dev_obj, EVENT_IBBUS_ANY_INFO,\r
                ("IBBUS started \n" ));\r
 \r
@@ -705,7 +707,8 @@ fdo_release_resources(
        }\r
 #endif \r
 \r
-       BUS_EXIT( BUS_DBG_PNP );\r
+       BUS_TRACE_EXIT( BUS_DBG_PNP, \r
+               ("=====> IBBUS: fdo_release_resources exited \n") );\r
 }\r
 \r
 \r
index c0246b7..5bd0f36 100644 (file)
@@ -389,7 +389,8 @@ DriverEntry(
 \r
        NdisMRegisterUnloadHandler( g_ipoib.h_ndis_wrapper, ipoib_unload );\r
 \r
-       IPOIB_EXIT( IPOIB_DBG_INIT );\r
+       IPOIB_PRINT_EXIT(TRACE_LEVEL_WARNING, IPOIB_DBG_INIT, \r
+               ("=====> DriverEntry exited\n"));\r
        return status;\r
 }\r
 \r