Received: from eggs.gnu.org ([2001:4830:134:3::10]:42705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fO7d5-0002vG-Au for qemu-devel@nongnu.org; Wed, 30 May 2018 16:23:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fO7d4-0005MI-Fs for qemu-devel@nongnu.org; Wed, 30 May 2018 16:23:31 -0400 References: <20180529174821.19964-1-f4bug@amsat.org> <20180529174821.19964-2-f4bug@amsat.org> From: John Snow Message-ID: Date: Wed, 30 May 2018 16:23:19 -0400 MIME-Version: 1.0 In-Reply-To: <20180529174821.19964-2-f4bug@amsat.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/4] hw/block/fdc: Replace error_setg(&error_abort) by error_report() + abort() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Eric Blake , Markus Armbruster , Kevin Wolf , Max Reitz Cc: Peter Maydell , qemu-block@nongnu.org, qemu-devel@nongnu.org On 05/29/2018 01:48 PM, Philippe Mathieu-Daud=C3=A9 wrote: > Use error_report() + abort() instead of error_setg(&error_abort), > as suggested by the "qapi/error.h" documentation: >=20 > Please don't error_setg(&error_fatal, ...), use error_report() and > exit(), because that's more obvious. > Likewise, don't error_setg(&error_abort, ...), use assert(). >=20 Didn't realize this was bad form (Why do we have it?) > Use abort() instead of the suggested assert() because the error message > already got displayed. >=20 Update the suggestion? > Suggested-by: Eric Blake > Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: John Snow Acked-by: John Snow