From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdZiq-0000bp-6T for qemu-devel@nongnu.org; Thu, 12 Jul 2018 07:25:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdZio-0005lY-3s for qemu-devel@nongnu.org; Thu, 12 Jul 2018 07:25:18 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47948 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 1fdZin-0005ku-Vy for qemu-devel@nongnu.org; Thu, 12 Jul 2018 07:25:18 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7B4944075764 for ; Thu, 12 Jul 2018 11:25:17 +0000 (UTC) From: Juan Quintela In-Reply-To: <20180712111221.20326-18-armbru@redhat.com> (Markus Armbruster's message of "Thu, 12 Jul 2018 13:12:18 +0200") References: <20180712111221.20326-1-armbru@redhat.com> <20180712111221.20326-18-armbru@redhat.com> Reply-To: quintela@redhat.com Date: Thu, 12 Jul 2018 13:25:11 +0200 Message-ID: <87h8l4lmqw.fsf@secure.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 17/20] migration-test: Clean up string interpolation into QMP, part 1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, Eric Blake , "Dr . David Alan Gilbert" Markus Armbruster wrote: > Leaving interpolation into JSON to qmp() is more robust than building > QMP input manually, as explained in the recent commit "tests: Clean up > string interpolation into QMP input (simple cases)". > > migrate_recover() builds QMP input manually because wait_command() > can't interpolate. Well, it can since the previous commit. Simplify > accordingly. > > Bonus: gets rid of a non-literal format string. A step towards > compile-time format string checking without triggering > -Wformat-nonliteral. > > Cc: Juan Quintela > Cc: Dr. David Alan Gilbert > Signed-off-by: Markus Armbruster Reviewed-by: Juan Quintela Why, o why it needs to be so difficult!!!