win-pvdrivers

changeset 699:bdabcc424aec

Removed KdPrint etc macros
author James Harper <james.harper@bendigoit.com.au>
date Wed Nov 25 21:36:58 2009 +1100 (2009-11-25)
parents ec4a20a75657
children 377647b4097a
files common/include/xen_windows.h
line diff
     1.1 --- a/common/include/xen_windows.h	Sat Nov 14 16:33:14 2009 +1100
     1.2 +++ b/common/include/xen_windows.h	Wed Nov 25 21:36:58 2009 +1100
     1.3 @@ -206,6 +206,8 @@ the wrong width is used with the wrong d
     1.4  #define QEMU_UNPLUG_ALL_NICS 2
     1.5  #define QEMU_UNPLUG_AUX_IDE_DISKS 4
     1.6  
     1.7 +#if 0
     1.8 +
     1.9  static BOOLEAN debug_port_probed = FALSE;
    1.10  static BOOLEAN debug_port_enabled;
    1.11  
    1.12 @@ -247,6 +249,7 @@ static void XenDbgPrint(PCHAR format, ..
    1.13    }
    1.14  }
    1.15  
    1.16 +
    1.17  static VOID
    1.18  XenRtlAssert(PCHAR expr, PCHAR filename, ULONG line_number)
    1.19  {
    1.20 @@ -279,6 +282,16 @@ XenRtlAssert(PCHAR expr, PCHAR filename,
    1.21  #define FUNCTION_MSG(format, ...) XenDbgPrint(__DRIVER_NAME "     " format, __VA_ARGS__)
    1.22  #endif
    1.23  
    1.24 +#else
    1.25 +
    1.26 +#define FUNCTION_ENTER()       KdPrint((__DRIVER_NAME " --> %s\n", __FUNCTION__))
    1.27 +#define FUNCTION_EXIT()        KdPrint((__DRIVER_NAME " <-- %s\n", __FUNCTION__))
    1.28 +#define FUNCTION_EXIT_STATUS(_status) KdPrint((__DRIVER_NAME " <-- %s, status = %08x\n", __FUNCTION__, _status))
    1.29 +#define FUNCTION_MSG(...) KdPrint((__DRIVER_NAME "     " __VA_ARGS__))
    1.30 +
    1.31 +#endif
    1.32 +
    1.33 +
    1.34  #define INVALID_GRANT_REF 0xFFFFFFFF
    1.35  
    1.36  typedef PHYSICAL_ADDRESS