From 89202e739442f2ab435c69159610ca4e0269f114 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Sun, 13 Jun 2010 19:34:38 +0300 Subject: Actually use pn_strdup_vprintf() Signed-off-by: Felipe Contreras --- pn_log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pn_log.c b/pn_log.c index 1463efc..d662c20 100644 --- a/pn_log.c +++ b/pn_log.c @@ -1,4 +1,5 @@ #include "pn_log.h" +#include "pn_printf.h" #include #include @@ -32,7 +33,7 @@ void _pn_helper(unsigned level, va_start(args, fmt); - vasprintf(&tmp, fmt, args); + tmp = pn_strdup_vprintf(fmt, args); if (level <= 1) fprintf(stdout, "%c: %s: %s\n", l, function, tmp); -- cgit v1.2.3