From fc938da641728e9730c30ffd2a52876df75eb5ee Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 27 Jun 2000 22:58:20 +0000 Subject: [PATCH] + * regress/output-.report file contains more useful info. @@ -17,6 +17,7 @@ + * regress/output-.report file contains more useful info. --- changelog | 1 + regress/hplayback.c.m4 | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index 174733b..5382757 100644 --- a/changelog +++ b/changelog @@ -17,6 +17,7 @@ adns (0.9) unstable; urgency=low * Do not print warning if sendto() gives EAGAIN. * adnsresfilter default timeout changed to 1000ms. * m1test script can invoke `hrecord' differently. + * regress/output-.report file contains more useful info. -- diff --git a/regress/hplayback.c.m4 b/regress/hplayback.c.m4 index e459ee6..bb36528 100644 --- a/regress/hplayback.c.m4 +++ b/regress/hplayback.c.m4 @@ -253,6 +253,7 @@ static int Pbytes(byte *buf, int maxlen) { void Q_vb(void) { int r; + const char *nl; Tensureinputfile(); if (!adns__vbuf_ensure(&vb2,vb.used+2)) Tnomem(); @@ -272,6 +273,9 @@ void Q_vb(void) { vb.used,vb.buf, vb.used,vb2.buf+1); exit(1); } + Tensurereportfile(); + nl= memchr(vb.buf,'\n',vb.used); + fprintf(Treportfile," %.*s\n", (int)(nl ? nl - (const char*)vb.buf : vb.used), vb.buf); } m4_define(`hm_syscall', ` @@ -300,7 +304,7 @@ int H$1(hm_args_massage($3,void)) { fgets(vb2.buf,vb2.avail,Tinputfile); Pcheckinput(); Tensurereportfile(); - fprintf(Treportfile,"syscallr %s",vb2.buf); + fprintf(Treportfile,"%s",vb2.buf); amtread= strlen(vb2.buf); if (amtread<=0 || vb2.buf[--amtread]!=hm_squote\nhm_squote) Psyntax("badly formed line"); -- 2.30.2