Received: from eggs.gnu.org ([2001:4830:134:3::10]:59955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmh5z-0005sk-Ul for qemu-devel@nongnu.org; Wed, 21 Sep 2016 08:57:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmh5v-0002ge-V7 for qemu-devel@nongnu.org; Wed, 21 Sep 2016 08:57:51 -0400 Received: from smtp3.mundo-r.com ([212.51.32.191]:64215 helo=smtp4.mundo-r.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmh5v-0002Up-O0 for qemu-devel@nongnu.org; Wed, 21 Sep 2016 08:57:47 -0400 From: Alberto Garcia In-Reply-To: <20160921103629.6410-2-marcandre.lureau@redhat.com> References: <20160921103629.6410-1-marcandre.lureau@redhat.com> <20160921103629.6410-2-marcandre.lureau@redhat.com> Date: Wed, 21 Sep 2016 14:57:09 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/3] qapi: return a 'missing parameter' error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , qemu-devel@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com On Wed 21 Sep 2016 12:36:27 PM CEST, Marc-Andr=C3=A9 Lureau wrote: > The 'old' dispatch code returned a QERR_MISSING_PARAMETER for missing > parameters, but the qapi qmp_dispatch() code uses > QERR_INVALID_PARAMETER_TYPE. > > Improve qapi code to return QERR_INVALID_PARAMETER_TYPE where > appropriate. > > Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Alberto Garcia Berto