From 98d3c9e1b820020111aa85853c93ecb3550c627b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 6 May 2015 03:42:02 +0200 Subject: Support pcilib_log_once calls --- pcilib/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pcilib/debug.c') diff --git a/pcilib/debug.c b/pcilib/debug.c index 6d7d8af..ca31364 100644 --- a/pcilib/debug.c +++ b/pcilib/debug.c @@ -11,13 +11,13 @@ #define PCILIB_MAX_DEBUG_FILENAME_LENGTH 1023 -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, ...) { va_list va; if (!getenv(function)) return; va_start(va, format); - pcilib_log_vmessage(file, line, PCILIB_LOG_DEBUG, format, va); + pcilib_log_vmessage(file, line, PCILIB_LOG_DEBUG, flags, format, va); va_end(va); } -- cgit v1.2.3