From ccc34fa5ecea32517b72ebc01aca8f02295105fe Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 30 Apr 2015 20:18:57 +0200 Subject: Add code to debug missing events while recording --- pcilib/debug.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pcilib') diff --git a/pcilib/debug.h b/pcilib/debug.h index f9134be..b7c547f 100644 --- a/pcilib/debug.h +++ b/pcilib/debug.h @@ -5,6 +5,7 @@ #ifdef PCILIB_DEBUG # define PCILIB_DEBUG_DMA +# define PCILIB_DEBUG_MISSING_EVENTS #endif /* PCILIB_DEBUG */ @@ -14,6 +15,13 @@ # define PCILIB_DEBUG_DMA_CALL(function, ...) #endif /* PCILIB_DEBUG_DMA */ +#ifdef PCILIB_DEBUG_MISSING_EVENTS +# define PCILIB_DEBUG_MISSING_EVENTS_CALL(function, ...) pcilib_debug_message (#function, __FILE__, __LINE__, __VA_ARGS__) +#else /* PCILIB_DEBUG_MISSING_EVENTS */ +# define PCILIB_DEBUG_MISSING_EVENTS_CALL(function, ...) +#endif /* PCILIB_DEBUG_MISSING_EVENTS */ + + #define pcilib_debug(function, ...) \ PCILIB_DEBUG_##function##_CALL(PCILIB_DEBUG_##function, __VA_ARGS__) -- cgit v1.2.3