[BLUE] Perform size/rectangle boundary checks on read/write operations. CORE-15108
[reactos.git] / drivers / usb / usbohci_new / dbg_ohci.h
1 /*
2 * PROJECT: ReactOS USB OHCI Miniport Driver
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: USBOHCI debugging declarations
5 * COPYRIGHT: Copyright 2017-2018 Vadim Galyant <vgal@rambler.ru>
6 */
7
8 #ifndef DBG_OHCI_H__
9 #define DBG_OHCI_H__
10
11 #if DBG
12
13 #ifndef NDEBUG_OHCI_TRACE
14 #define DPRINT_OHCI(fmt, ...) do { \
15 if (DbgPrint("(%s:%d) " fmt, __RELFILE__, __LINE__, ##__VA_ARGS__)) \
16 DbgPrint("(%s:%d) DbgPrint() failed!\n", __RELFILE__, __LINE__); \
17 } while (0)
18 #else
19 #if defined(_MSC_VER)
20 #define DPRINT_OHCI __noop
21 #else
22 #define DPRINT_OHCI(...) do {if(0) {DbgPrint(__VA_ARGS__);}} while(0)
23 #endif
24 #endif
25
26 #else /* not DBG */
27
28 #if defined(_MSC_VER)
29 #define DPRINT_OHCI __noop
30 #else
31 #define DPRINT_OHCI(...) do {if(0) {DbgPrint(__VA_ARGS__);}} while(0)
32 #endif /* _MSC_VER */
33
34 #endif /* not DBG */
35
36 #endif /* DBG_OHCI_H__ */