win-pvdrivers
changeset 1046:e0944ce4ea98
Only log messages in DBG build
author | James Harper <james.harper@bendigoit.com.au> |
---|---|
date | Mon May 13 20:49:12 2013 +1000 (2013-05-13) |
parents | f6a7b0654b9c |
children | 0248483f90cc |
files | common/include/xen_windows.h |
line diff
1.1 --- a/common/include/xen_windows.h Mon Mar 04 14:36:18 2013 +1100 1.2 +++ b/common/include/xen_windows.h Mon May 13 20:49:12 2013 +1000 1.3 @@ -172,10 +172,17 @@ 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 DBG 1.8 #define FUNCTION_ENTER() XnDebugPrint(__DRIVER_NAME " --> %s\n", __FUNCTION__) 1.9 #define FUNCTION_EXIT() XnDebugPrint(__DRIVER_NAME " <-- %s\n", __FUNCTION__) 1.10 #define FUNCTION_EXIT_STATUS(_status) XnDebugPrint(__DRIVER_NAME " <-- %s, status = %08x\n", __FUNCTION__, _status) 1.11 #define FUNCTION_MSG(...) XnDebugPrint(__DRIVER_NAME " " __VA_ARGS__) 1.12 +#else 1.13 +#define FUNCTION_ENTER() 1.14 +#define FUNCTION_EXIT() 1.15 +#define FUNCTION_EXIT_STATUS(_status) 1.16 +#define FUNCTION_MSG(...) 1.17 +#endif 1.18 1.19 #define INVALID_GRANT_REF 0xFFFFFFFF 1.20