kopia lustrzana https://github.com/F5OEO/librpitx
Fix util.cpp missing
rodzic
62259b6c75
commit
7e50948296
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Ładowanie…
Reference in New Issue