diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-05-06 03:42:02 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-05-06 03:42:02 +0200 |
commit | 98d3c9e1b820020111aa85853c93ecb3550c627b (patch) | |
tree | caea2ad19be18d716f47091c23b4fd01e37776a4 /pcilib/debug.h | |
parent | 9ccacea308f336d10c8a94d393b261539a6970bf (diff) | |
download | pcitool-98d3c9e1b820020111aa85853c93ecb3550c627b.tar.gz pcitool-98d3c9e1b820020111aa85853c93ecb3550c627b.tar.bz2 pcitool-98d3c9e1b820020111aa85853c93ecb3550c627b.tar.xz pcitool-98d3c9e1b820020111aa85853c93ecb3550c627b.zip |
Support pcilib_log_once calls
Diffstat (limited to 'pcilib/debug.h')
-rw-r--r-- | pcilib/debug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcilib/debug.h b/pcilib/debug.h index fb0a791..bff3ab0 100644 --- a/pcilib/debug.h +++ b/pcilib/debug.h @@ -28,7 +28,7 @@ #endif /* PCILIB_DEBUG_MISSING_EVENTS */ #define pcilib_debug(function, ...) \ - PCILIB_DEBUG_##function##_MESSAGE(PCILIB_DEBUG_##function, __VA_ARGS__) + PCILIB_DEBUG_##function##_MESSAGE(PCILIB_DEBUG_##function, PCILIB_LOG_DEFAULT, __VA_ARGS__) #define pcilib_debug_buffer(function, ...) \ PCILIB_DEBUG_##function##_BUFFER(PCILIB_DEBUG_##function, __VA_ARGS__) @@ -38,7 +38,7 @@ typedef enum { PCILIB_DEBUG_BUFFER_MKDIR = 2 } pcilib_debug_buffer_flags_t; -void pcilib_debug_message(const char *function, const char *file, int line, const char *format, ...); +void pcilib_debug_message(const char *function, const char *file, int line, pcilib_log_flags_t flags, const char *format, ...); void pcilib_debug_data_buffer(const char *function, size_t size, void *buffer, pcilib_debug_buffer_flags_t flags, const char *file, ...); |