summaryrefslogtreecommitdiffstats
path: root/pcilib/debug.c
blob: f07e1e64d4b97d045d9dd728a3ef974249ed6e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>

#include "error.h"

void pcilib_debug_message(const char *function, const char *file, int line, const char *format, ...) {
    va_list va;

    if (!getenv(function)) return;

    va_start(va, format);
    pcilib_log_vmessage(file, line, PCILIB_LOG_DEBUG, format, va);
    va_end(va);
}