From nobody Mon May 6 19:50:31 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1559730474; cv=none; d=zoho.com; s=zohoarc; b=FBGcGazNSB9auxCTV282QkhE3ygtmz3forEBHSzA8ZuFZ14hQs6T3yDmYBeS/il7NGr38g1wtqDgHB9v+35f6I5pPqv6jfdGWYO98YqeDWJI3Q22StAWRRUUuXZvzR/Dm8E7eQs9hzxR+p1bzoumvG3arfWiwhCQCzDC33qJsJc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559730474; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=4eHtS6jcH+kb/fBOi0L56lDIEAGn1P3yXVpiS8cRAj8=; b=Ffe7wslsYGp1hwcvqBzA5QFoKxTpX7C5+ucCZO6HqWCCPrkkz4kIHvS+l0d7iE3rGJRhcVNz3kYILBo2sUSzE7TNZx2T/bEbdmOxUtEaIDPt4YjSSgj3EjmW6J1tnl7EuQ3cIS49P+KxmyytcWXQTI59CT0m0B+Kx9R4fm4IMCs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1559730474418970.1069872344755; Wed, 5 Jun 2019 03:27:54 -0700 (PDT) Received: from localhost ([127.0.0.1]:38779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYT8U-0005Pe-L1 for importer@patchew.org; Wed, 05 Jun 2019 06:27:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYT7N-0004uB-KG for qemu-devel@nongnu.org; Wed, 05 Jun 2019 06:26:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYT7M-0001g1-CN for qemu-devel@nongnu.org; Wed, 05 Jun 2019 06:26:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54855) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYT7L-0001bK-LU for qemu-devel@nongnu.org; Wed, 05 Jun 2019 06:26:03 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F15D5308338F for ; Wed, 5 Jun 2019 10:26:01 +0000 (UTC) Received: from xz-x1.nay.redhat.com (dhcp-15-205.nay.redhat.com [10.66.15.205]) by smtp.corp.redhat.com (Postfix) with ESMTP id 86CEA1001E73; Wed, 5 Jun 2019 10:25:57 +0000 (UTC) From: Peter Xu To: qemu-devel@nongnu.org Date: Wed, 5 Jun 2019 18:25:55 +0800 Message-Id: <20190605102555.23050-1-peterx@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 05 Jun 2019 10:26:02 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] tests: Add proper newlines for qmp_fd_receive X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Thomas Huth , Juan Quintela , "Dr . David Alan Gilbert" , peterx@redhat.com, Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" It changes QTEST_LOG=3D1 results a bit more lovely, from: {"return": ... }{"execute": "query-migrate"} {"return": ... }{"execute": "query-migrate"} Into: {"execute": "query-migrate"} {"return": ... } {"execute": "query-migrate"} {"return": ... } CC: Thomas Huth CC: Laurent Vivier CC: Paolo Bonzini Signed-off-by: Peter Xu --- tests/libqtest.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/libqtest.c b/tests/libqtest.c index 546a875913..d7301d773e 100644 --- a/tests/libqtest.c +++ b/tests/libqtest.c @@ -532,6 +532,10 @@ QDict *qmp_fd_receive(int fd) } json_message_parser_destroy(&qmp.parser); =20 + if (log) { + fprintf(stderr, "\n\n"); + } + return qmp.response; } =20 --=20 2.17.1