mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Fixed another closure bug. Updated debug levels
This commit is contained in:
parent
4dbb84cea1
commit
6338a4933b
5 changed files with 71 additions and 40 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue