From 79167f2563f4a8733b9c4717badf2c17ce3751f3 Mon Sep 17 00:00:00 2001 From: "tg(x)" <*@tg-x.net> Date: Thu, 2 Jun 2011 15:07:11 +0200 Subject: [PATCH] testPsyc: +debug msg --- test/testPsyc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testPsyc.c b/test/testPsyc.c index f49922a..43e969e 100644 --- a/test/testPsyc.c +++ b/test/testPsyc.c @@ -190,6 +190,8 @@ int test_input (int i, char *recvbuf, size_t nbytes) { contbytes = psyc_getParseRemainingLength(&parsers[i]); if (contbytes > 0) { // copy end of parsebuf before start of recvbuf + if (verbose >= 3) + printf("# remaining = [%.*s]\n", (int)contbytes, psyc_getParseRemainingBuffer(&parsers[i])); assert(contbytes <= CONT_BUF_SIZE); // make sure it's still in the buffer memmove(recvbuf - contbytes, psyc_getParseRemainingBuffer(&parsers[i]), contbytes); }