Received: from eggs.gnu.org ([2001:4830:134:3::10]:54147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4W4z-0002fR-DG for qemu-devel@nongnu.org; Mon, 15 Jun 2015 11:13:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4W4u-0003Hl-32 for qemu-devel@nongnu.org; Mon, 15 Jun 2015 11:13:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4W4t-0003He-UN for qemu-devel@nongnu.org; Mon, 15 Jun 2015 11:13:36 -0400 Date: Mon, 15 Jun 2015 16:13:33 +0100 From: Stefan Hajnoczi Message-ID: <20150615151333.GI12553@stefanha-thinkpad.redhat.com> References: <1434205258-1932-1-git-send-email-armbru@redhat.com> <1434205258-1932-5-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="boAH8PqvUi1v1f55" Content-Disposition: inline In-Reply-To: <1434205258-1932-5-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [PATCH 04/11] qerror: Eliminate QERR_DEVICE_NOT_FOUND List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: mdroth@linux.vnet.ibm.com, kwolf@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com --boAH8PqvUi1v1f55 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 13, 2015 at 04:20:51PM +0200, Markus Armbruster wrote: > Error classes other than ERROR_CLASS_GENERIC_ERROR should not be used > in new code. Hiding them in QERR_ macros makes new uses hard to spot. > Fortunately, there's just one such macro left. Eliminate it with this > coccinelle semantic patch: >=20 > @@ > expression EP, E; > @@ > -error_set(EP, QERR_DEVICE_NOT_FOUND, E) > +error_set(EP, ERROR_CLASS_DEVICE_NOT_FOUND, "Device '%s' not found",= E) >=20 > Signed-off-by: Markus Armbruster > --- > backends/rng-egd.c | 3 ++- > blockdev-nbd.c | 3 ++- > blockdev.c | 33 ++++++++++++++++++++++----------- > hmp.c | 6 ++++-- > include/qapi/qmp/qerror.h | 3 --- > net/net.c | 6 ++++-- > qdev-monitor.c | 6 ++++-- > qmp.c | 12 ++++++++---- > qom/object.c | 6 ++++-- > ui/input.c | 3 ++- > 10 files changed, 52 insertions(+), 29 deletions(-) Reviewed-by: Stefan Hajnoczi --boAH8PqvUi1v1f55 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVfuudAAoJEJykq7OBq3PIllsH/j9NDhGyEMRWCdkr/UqwIRal IO3xqLF4kWsgmbHDZvxpIAicgwKkUZtYwR1ZyVEcBvTUZfmKSEI8Wjz5VMvABnEL DJak/Ndd19O1rWZd869rjwucpYycPJRupAbm2gxL2X5mB9mBn25EChFUZaKs0CM7 JPdqpQRZkZQN5OEvcW/BT8sMW1yaVSdxiqQSVO0HFgzjvAmQeCuajqs/vCl0xup0 CHQQF6WSoYoWcxokhN6Lki4LCN+YGGXBQrwsyowNnNsqf+m14CL1MF7jjAa2Netr 2lDj/z4QUeqFq3wl1LoBP9OgWwDrbLI41R+w/T0gYk7ucquFyq6awU30DJFm3Ok= =TxwG -----END PGP SIGNATURE----- --boAH8PqvUi1v1f55--