From 437978ce6025c8e368ef3726e3b06d0944574897 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 18 Dec 2014 11:50:57 +0000 Subject: Add PROG logging to minidentd -v --- src/minidentd/minidentd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/minidentd/minidentd.c b/src/minidentd/minidentd.c index 0bd86be..a6dfee4 100644 --- a/src/minidentd/minidentd.c +++ b/src/minidentd/minidentd.c @@ -74,8 +74,9 @@ static void reply (char const *s, char const *r, char const *info) static void logquery (char const *s) { if (!flagverbose) return ; + buffer_puts(buffer_2, PROG) ; + buffer_puts(buffer_2, ": info : query ") ; logfmt[uint_fmt(logfmt, ++nquery)] = 0 ; - buffer_put(buffer_2, "query ", 6) ; buffer_puts(buffer_2, logfmt) ; buffer_put(buffer_2, ": ", 2) ; buffer_puts(buffer_2, s) ; @@ -85,7 +86,8 @@ static void logquery (char const *s) static void logreply (char const *type, char const *reply1, char const *reply2) { if (!flagverbose) return ; - buffer_puts(buffer_2, "reply type ") ; + buffer_puts(buffer_2, PROG) ; + buffer_puts(buffer_2, ": info: reply type ") ; buffer_puts(buffer_2, type) ; buffer_put(buffer_2, ": ", 2) ; buffer_puts(buffer_2, logfmt) ; -- cgit v1.2.3