qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 02/28] libqtest: add QTEST_LOG for debugging qte


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH 02/28] libqtest: add QTEST_LOG for debugging qtest testcases
Date: Thu, 17 Jul 2014 14:32:34 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Jul 07, 2014 at 02:17:43PM -0400, John Snow wrote:
>  QDict *qtest_qmp_receive(QTestState *s)
>  {
>      QMPResponseParser qmp;
> +    bool log = getenv("QTEST_LOG") != NULL;
>  
>      qmp.response = NULL;
>      json_message_parser_init(&qmp.parser, qmp_response);
> @@ -375,6 +377,9 @@ QDict *qtest_qmp_receive(QTestState *s)
>              exit(1);
>          }
>  
> +        if (log) {
> +            len = write(2, &c, 1);
> +        }
>          json_message_parser_feed(&qmp.parser, &c, 1);
>      }

Is the QMP command also logged or are we just logging the response?

Stefan

Attachment: pgpDYLWzKf9D4.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]