mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 04:11:30 +00:00
52 lines
1.5 KiB
C
52 lines
1.5 KiB
C
/*
|
|
* PROJECT: ReactOS USB EHCI Miniport Driver
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: USBEHCI debugging declarations
|
|
* COPYRIGHT: Copyright 2017-2018 Vadim Galyant <vgal@rambler.ru>
|
|
*/
|
|
|
|
#ifndef DBG_EHCI_H__
|
|
#define DBG_EHCI_H__
|
|
|
|
#if DBG
|
|
|
|
#ifndef NDEBUG_EHCI_TRACE
|
|
#define DPRINT_EHCI(fmt, ...) do { \
|
|
if (DbgPrint("(%s:%d) " fmt, __RELFILE__, __LINE__, ##__VA_ARGS__)) \
|
|
DbgPrint("(%s:%d) DbgPrint() failed!\n", __RELFILE__, __LINE__); \
|
|
} while (0)
|
|
#else
|
|
#if defined(_MSC_VER)
|
|
#define DPRINT_EHCI __noop
|
|
#else
|
|
#define DPRINT_EHCI(...) do {if(0) {DbgPrint(__VA_ARGS__);}} while(0)
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef NDEBUG_EHCI_ROOT_HUB
|
|
#define DPRINT_RH(fmt, ...) do { \
|
|
if (DbgPrint("(%s:%d) " fmt, __RELFILE__, __LINE__, ##__VA_ARGS__)) \
|
|
DbgPrint("(%s:%d) DbgPrint() failed!\n", __RELFILE__, __LINE__); \
|
|
} while (0)
|
|
#else
|
|
#if defined(_MSC_VER)
|
|
#define DPRINT_RH __noop
|
|
#else
|
|
#define DPRINT_RH(...) do {if(0) {DbgPrint(__VA_ARGS__);}} while(0)
|
|
#endif
|
|
#endif
|
|
|
|
#else /* not DBG */
|
|
|
|
#if defined(_MSC_VER)
|
|
#define DPRINT_EHCI __noop
|
|
#define DPRINT_RH __noop
|
|
#else
|
|
#define DPRINT_EHCI(...) do {if(0) {DbgPrint(__VA_ARGS__);}} while(0)
|
|
#define DPRINT_RH(...) do {if(0) {DbgPrint(__VA_ARGS__);}} while(0)
|
|
#endif /* _MSC_VER */
|
|
|
|
#endif /* not DBG */
|
|
|
|
#endif /* DBG_EHCI_H__ */
|