Fixed another closure bug. Updated debug levels

This commit is contained in:
Joseph Henry 2015-11-02 12:30:18 -08:00
commit 6338a4933b
5 changed files with 71 additions and 40 deletions

View file

@ -40,15 +40,28 @@
#ifndef _NETCON_UTILITIES_CPP
#define _NETCON_UTILITIES_CPP
#define DEBUG_LEVEL 3
namespace ZeroTier
{
void dwr(int level, char *fmt, ... )
{
if(level > DEBUG_LEVEL)
return;
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
fflush(stderr);
va_end(ap);
}
void dwr(char *fmt, ... )
{
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
fflush(stderr);
va_end(ap);
va_end(ap);
}
void clearscreen()