win-pvdrivers

changeset 789:65a687a0933e

Turn off debugprint hooking if free build.
Turn off some debugging prints.
author James Harper <james.harper@bendigoit.com.au>
date Fri Mar 12 09:35:56 2010 +1100 (2010-03-12)
parents 3058ea7a6f59
children 467005e7f509
files xenpci/xenpci.c
line diff
     1.1 --- a/xenpci/xenpci.c	Sat Feb 20 16:34:22 2010 +1100
     1.2 +++ b/xenpci/xenpci.c	Fri Mar 12 09:35:56 2010 +1100
     1.3 @@ -459,7 +459,7 @@ XenPci_FixLoadOrder()
     1.4      WdfObjectDelete(old_load_order);
     1.5      return;
     1.6    }
     1.7 -  KdPrint((__DRIVER_NAME "     Current Order:\n"));        
     1.8 +  //KdPrint((__DRIVER_NAME "     Current Order:\n"));        
     1.9    for (i = 0; i < WdfCollectionGetCount(old_load_order); i++)
    1.10    {
    1.11      WDFOBJECT ws = WdfCollectionGetItem(old_load_order, i);
    1.12 @@ -473,7 +473,7 @@ XenPci_FixLoadOrder()
    1.13        xenpci_group_index = (ULONG)i;         
    1.14      if (!RtlCompareUnicodeString(&val, &boot_bus_extender_name, TRUE))
    1.15        boot_bus_extender_index = (ULONG)i;         
    1.16 -    KdPrint((__DRIVER_NAME "       %wZ\n", &val));        
    1.17 +    //KdPrint((__DRIVER_NAME "       %wZ\n", &val));        
    1.18    }
    1.19    KdPrint((__DRIVER_NAME "     dummy_group_index = %d\n", dummy_group_index));
    1.20    KdPrint((__DRIVER_NAME "     wdf_load_group_index = %d\n", wdf_load_group_index));
    1.21 @@ -523,13 +523,13 @@ XenPci_FixLoadOrder()
    1.22      WdfCollectionAdd(new_load_order, ws);
    1.23    }
    1.24    WdfRegistryAssignMultiString(sgo_key, &list_name, new_load_order);
    1.25 -  KdPrint((__DRIVER_NAME "     New Order:\n"));        
    1.26 +  //KdPrint((__DRIVER_NAME "     New Order:\n"));        
    1.27    for (i = 0; i < WdfCollectionGetCount(new_load_order); i++)
    1.28    {
    1.29      WDFOBJECT ws = WdfCollectionGetItem(new_load_order, i);
    1.30      UNICODE_STRING val;
    1.31      WdfStringGetUnicodeString(ws, &val);
    1.32 -    KdPrint((__DRIVER_NAME "       %wZ\n", &val));        
    1.33 +    //KdPrint((__DRIVER_NAME "       %wZ\n", &val));        
    1.34    }
    1.35    WdfObjectDelete(new_load_order);
    1.36    WdfObjectDelete(old_load_order);
    1.37 @@ -568,7 +568,9 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
    1.38      KdPrint((__DRIVER_NAME "     AuxKlibInitialize failed %08x - expect a crash soon\n", status));
    1.39    }
    1.40    
    1.41 +  #if DBG
    1.42    XenPci_HookDbgPrint();
    1.43 +  #endif
    1.44  
    1.45    XenPci_FixLoadOrder();
    1.46