diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2010-06-13 19:34:38 +0300 |
---|---|---|
committer | Felipe Contreras <felipe.contreras@gmail.com> | 2010-06-14 02:47:15 +0300 |
commit | 89202e739442f2ab435c69159610ca4e0269f114 (patch) | |
tree | 16b87cfd3ed1149a0ba7a2a55818657313e295b5 | |
parent | ce8fed33ea953903b3064b70541a3ab89c02f47b (diff) |
Actually use pn_strdup_vprintf()
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
-rw-r--r-- | pn_log.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ #include "pn_log.h" +#include "pn_printf.h" #include <stdarg.h> #include <stdio.h> @@ -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); |