summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-18 11:50:57 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-18 11:50:57 +0000
commit437978ce6025c8e368ef3726e3b06d0944574897 (patch)
tree3d73076ac1fd803654ffbd833a82628ba3bc6bfa
parent37a808de7ecdf87a496bd71db16cdf561e7e1537 (diff)
downloads6-networking-437978ce6025c8e368ef3726e3b06d0944574897.tar.xz
Add PROG logging to minidentd -v
-rw-r--r--src/minidentd/minidentd.c6
1 files changed, 4 insertions, 2 deletions
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) ;