win-pvdrivers

changeset 1047:0248483f90cc

Turn some debug prints back on for free builds
author James Harper <james.harper@bendigoit.com.au>
date Mon May 13 20:50:48 2013 +1000 (2013-05-13)
parents e0944ce4ea98
children fba0ce4d9e54
files xenpci/xenpci.c xenpci/xenpci_export.c
line diff
     1.1 --- a/xenpci/xenpci.c	Mon May 13 20:49:12 2013 +1000
     1.2 +++ b/xenpci/xenpci.c	Mon May 13 20:50:48 2013 +1000
     1.3 @@ -396,17 +396,16 @@ VOID
     1.4  XenPci_HideQemuDevices() {
     1.5    #pragma warning(suppress:28138)
     1.6    WRITE_PORT_USHORT(XEN_IOPORT_DEVICE_MASK, (USHORT)qemu_hide_flags_value); //QEMU_UNPLUG_ALL_IDE_DISKS|QEMU_UNPLUG_ALL_NICS);
     1.7 -  FUNCTION_MSG("Disabled qemu devices %02x\n", qemu_hide_flags_value);
     1.8 +  XnDebugPrint("disabled qemu devices %02x\n", qemu_hide_flags_value);
     1.9  }
    1.10  
    1.11  static BOOLEAN
    1.12 -XenPci_CheckHideQemuDevices()
    1.13 -{
    1.14 +XenPci_CheckHideQemuDevices() {
    1.15    #pragma warning(suppress:28138)
    1.16    if (READ_PORT_USHORT(XEN_IOPORT_MAGIC) == 0x49d2) {
    1.17      #pragma warning(suppress:28138)
    1.18      qemu_protocol_version = READ_PORT_UCHAR(XEN_IOPORT_VERSION);
    1.19 -    FUNCTION_MSG("Version = %d\n", qemu_protocol_version);
    1.20 +    XnDebugPrint("qemu version = %d\n", qemu_protocol_version);
    1.21      switch(qemu_protocol_version) {
    1.22      case 1:
    1.23        #pragma warning(suppress:28138)
    1.24 @@ -416,14 +415,14 @@ XenPci_CheckHideQemuDevices()
    1.25        #pragma warning(suppress:28138)
    1.26        if (READ_PORT_USHORT(XEN_IOPORT_MAGIC) != 0x49d2)
    1.27        {
    1.28 -        FUNCTION_MSG("Blacklisted\n");
    1.29 +        XnDebugPrint("qemu we are blacklisted\n");
    1.30          break;
    1.31        }
    1.32        /* fall through */
    1.33      case 0:
    1.34        return TRUE;
    1.35      default:
    1.36 -      FUNCTION_MSG("Unknown qemu version %d\n", qemu_protocol_version);
    1.37 +      XnDebugPrint("unknown qemu version %d\n", qemu_protocol_version);
    1.38        break;
    1.39      }
    1.40    }
     2.1 --- a/xenpci/xenpci_export.c	Mon May 13 20:49:12 2013 +1000
     2.2 +++ b/xenpci/xenpci_export.c	Mon May 13 20:50:48 2013 +1000
     2.3 @@ -421,6 +421,7 @@ XnPrintDump() {
     2.4    bugcheck_data.BugCheckDataSize  = sizeof(bugcheck_data);
     2.5    AuxKlibGetBugCheckData(&bugcheck_data);
     2.6    if (bugcheck_data.BugCheckCode != 0) {
     2.7 -    FUNCTION_MSG("Bug check 0x%08x (0x%p, 0x%p, 0x%p, 0x%p)\n", bugcheck_data.BugCheckCode, bugcheck_data.Parameter1, bugcheck_data.Parameter2, bugcheck_data.Parameter3, bugcheck_data.Parameter4);
     2.8 +    /* use XnDebugPrint so this gets printed even not in debug mode */
     2.9 +    XnDebugPrint("Bug check 0x%08x (0x%p, 0x%p, 0x%p, 0x%p)\n", bugcheck_data.BugCheckCode, bugcheck_data.Parameter1, bugcheck_data.Parameter2, bugcheck_data.Parameter3, bugcheck_data.Parameter4);
    2.10    }
    2.11  }