aboutsummaryrefslogtreecommitdiffstats
path: root/Source/lib/utils/logger.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-04-10 08:07:38 +0000
committerMartin Willi <martin@strongswan.org>2006-04-10 08:07:38 +0000
commit5113680f95e522c677cdd37072cfffbdca06831e (patch)
tree973ac57accbc66b042e5307942c6cbbbf4f19579 /Source/lib/utils/logger.c
parent6862128151fb78f63685a8da5575783c426d64a7 (diff)
downloadstrongswan-5113680f95e522c677cdd37072cfffbdca06831e.tar.bz2
strongswan-5113680f95e522c677cdd37072cfffbdca06831e.tar.xz
- split up in libstrong, charon, stroke, testing done
- new leak detective with malloc hook in library - useable, but needs improvements - logger_manager has now a single instance per library - allows use of loggers from any linking prog - a LOT of other things
Diffstat (limited to 'Source/lib/utils/logger.c')
-rw-r--r--Source/lib/utils/logger.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/lib/utils/logger.c b/Source/lib/utils/logger.c
index c66de481e..1ae6bd6f0 100644
--- a/Source/lib/utils/logger.c
+++ b/Source/lib/utils/logger.c
@@ -30,7 +30,6 @@
#include "logger.h"
#include <daemon.h>
-#include <utils/allocator.h>
/**
* Maximum length of a log entry (only used for logger_s.log).
@@ -314,8 +313,8 @@ static log_level_t get_level(private_logger_t *this)
*/
static void destroy(private_logger_t *this)
{
- allocator_free(this->name);
- allocator_free(this);
+ free(this->name);
+ free(this);
}
/*
@@ -323,7 +322,7 @@ static void destroy(private_logger_t *this)
*/
logger_t *logger_create(char *logger_name, log_level_t log_level, bool log_thread_id, FILE * output)
{
- private_logger_t *this = allocator_alloc_thing(private_logger_t);
+ private_logger_t *this = malloc_thing(private_logger_t);
/* public functions */
this->public.log = (void(*)(logger_t*,log_level_t,char*,...))logg;
@@ -346,7 +345,7 @@ logger_t *logger_create(char *logger_name, log_level_t log_level, bool log_threa
/* private variables */
this->level = log_level;
this->log_thread_id = log_thread_id;
- this->name = allocator_alloc(strlen(logger_name) + 1);
+ this->name = malloc(strlen(logger_name) + 1);
strcpy(this->name,logger_name);
this->output = output;