libtriple: improve lt_debug

* add current instance
* shorten lt_debug messages
This commit is contained in:
Stefan Seyfried
2011-10-02 21:48:41 +02:00
parent 7368fad7ba
commit 9cbede9fec
9 changed files with 29 additions and 27 deletions

View File

@@ -2,7 +2,7 @@
#include "ca.h"
#include "lt_debug.h"
#define lt_debug(args...) _lt_debug(TRIPLE_DEBUG_CA, args)
#define lt_debug(args...) _lt_debug(TRIPLE_DEBUG_CA, this, args)
static cCA *inst = NULL;
@@ -20,7 +20,7 @@ cCA::~cCA()
cCA *cCA::GetInstance()
{
lt_debug("%s\n", __FUNCTION__);
_lt_debug(TRIPLE_DEBUG_CA, NULL, "%s\n", __FUNCTION__);
if (inst == NULL)
inst = new cCA();