[AL] set initial values of debug variables.
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 25 Jun 2006 13:15:49 +0000 (13:15 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 25 Jun 2006 13:15:49 +0000 (13:15 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@390 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/user/al_dll.c
core/bus/kernel/bus_driver.c
core/bus/kernel/ib_bus.inf

index 1e63691..85aef03 100644 (file)
@@ -107,6 +107,8 @@ _DllMain(
                g_al_dbg_flags = _tcstoul( dbg_lvl_str, NULL, ENV_BUFSIZE );\r
        }\r
 \r
+       if( g_al_dbg_flags & AL_DBG_ERR )\r
+               g_al_dbg_flags |= CL_DBG_ERROR;\r
 \r
        AL_PRINT(TRACE_LEVEL_INFORMATION ,AL_DBG_DEV ,\r
                ("Given IBAL_UAL_DBG debug level:%d  debug flags 0x%x\n",\r
index 80d97ec..70061ac 100644 (file)
@@ -277,6 +277,16 @@ __read_registry(
        status = RtlQueryRegistryValues( RTL_REGISTRY_ABSOLUTE, \r
                param_path.Buffer, table, NULL, NULL );\r
 \r
+#if DBG\r
+       if( g_al_dbg_flags & AL_DBG_ERR )\r
+               g_al_dbg_flags |= CL_DBG_ERROR;\r
+#endif\r
+\r
+       BUS_TRACE(BUS_DBG_DRV ,\r
+                       ("debug level %d debug flags 0x%.8x\n",\r
+                       g_al_dbg_level,\r
+                       g_al_dbg_flags));\r
+\r
        cl_free( param_path.Buffer );\r
        BUS_EXIT( BUS_DBG_DRV );\r
        return status;\r
index e843785..d6193e8 100644 (file)
@@ -164,8 +164,8 @@ AddReg          = Iou.ParamsReg
 [Ibbus.ParamsReg]\r
 HKR,"Parameters","DebugFlags",%REG_DWORD%,0x80000000\r
 HKR,"Parameters","ReportPortNIC",%REG_DWORD%,1\r
-HKR,"Parameters","IbalDebugLevel",%REG_DWORD%,0x80000000\r
-HKR,"Parameters","IbalDebugFlags",%REG_DWORD%,0x80000000\r
+HKR,"Parameters","IbalDebugLevel",%REG_DWORD%,2\r
+HKR,"Parameters","IbalDebugFlags",%REG_DWORD%,0x00ffffff\r
 HKR,"Parameters","SmiPollInterval",%REG_DWORD_NO_CLOBBER%,20000\r
 HKR,"Parameters","IocQueryTimeout",%REG_DWORD_NO_CLOBBER%,250\r
 HKR,"Parameters","IocQueryRetries",%REG_DWORD_NO_CLOBBER%,4\r