Fix util.cpp missing

This commit is contained in:
F5OEO 2019-01-08 14:07:01 +00:00
parent 62259b6c75
commit 7e50948296

19
src/util.cpp Normal file
View file

@ -0,0 +1,19 @@
#include "util.h"
static int debug_level = 0;
void dbg_setlevel(int Level)
{
debug_level=Level;
}
void dbg_printf(int Level, const char *fmt, ...)
{
if (Level <= debug_level)
{
va_list args;
va_start(args, fmt);
vfprintf(stderr, fmt, args);
va_end(args);
}
}