From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk0wO-0000O7-1c for qemu-devel@nongnu.org; Mon, 30 Jul 2018 01:41:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fk0wK-0001nT-SQ for qemu-devel@nongnu.org; Mon, 30 Jul 2018 01:41:56 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36570 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fk0wK-0001n6-NV for qemu-devel@nongnu.org; Mon, 30 Jul 2018 01:41:52 -0400 From: Markus Armbruster References: <20180727151359.29061-1-armbru@redhat.com> <20180727151359.29061-3-armbru@redhat.com> <3b9339b3-9a22-e6df-7a93-4e0f870d342f@redhat.com> Date: Mon, 30 Jul 2018 07:41:49 +0200 In-Reply-To: <3b9339b3-9a22-e6df-7a93-4e0f870d342f@redhat.com> (Eric Blake's message of "Fri, 27 Jul 2018 10:24:25 -0500") Message-ID: <87k1pd2sbm.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 02/23] libqtest: Rename functions to send QMP messages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, thuth@redhat.com, f4bug@amsat.org Eric Blake writes: > On 07/27/2018 10:13 AM, Markus Armbruster wrote: >> The functions to receive messages are called qtest_qmp_receive() and >> qmp_receive(), qmp_fd_receive(). The ones to send messages are called >> qtest_async_qmp(), qtest_async_qmpv(), qmp_async(), qmp_fd_send(), >> qmp_fd_sendv(). Inconsistent. Rename the *_async* ones to >> qmp_send(), qtest_qmp_send(), qtest_qmp_vsend(). Rename >> qmp_fd_sendv() to qmp_fd_vsend(). >> >> Signed-off-by: Markus Armbruster >> Reviewed-by: Philippe Mathieu-Daud=C3=A9 >> --- > > Reviewed-by: Eric Blake > >> @@ -1592,8 +1592,8 @@ static void test_atapi_tray(void) >> atapi_wait_tray(false); >> /* Remove media */ >> - qmp_async("{'execute': 'blockdev-open-tray', " >> - "'arguments': {'id': 'cd0'}}"); >> + qmp_send("{'execute': 'blockdev-open-tray'," >> + " 'arguments': {'id': 'cd0'}}"); > > Could perhaps fit in one line now, but I won't insist. I tried, it doesn't fit.