From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7SR1-0003RK-Qb for qemu-devel@nongnu.org; Fri, 31 Aug 2012 10:43:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7SR0-00005G-DY for qemu-devel@nongnu.org; Fri, 31 Aug 2012 10:42:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7SR0-000053-5Z for qemu-devel@nongnu.org; Fri, 31 Aug 2012 10:42:58 -0400 Message-ID: <5040CD6D.2010201@redhat.com> Date: Fri, 31 Aug 2012 10:42:53 -0400 From: Jeff Cody MIME-Version: 1.0 References: <6dfa5019b22f1d72b1b02ba14efc9766fcb6e0a9.1346351079.git.jcody@redhat.com> <503FEF68.1080002@redhat.com> In-Reply-To: <503FEF68.1080002@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v2 PATCH 4/6] qerror: new error for live block commit, QERR_TOP_NOT_FOUND Reply-To: jcody@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, pbonzini@redhat.com, stefanha@gmail.com, qemu-devel@nongnu.org, supriyak@linux.vnet.ibm.com On 08/30/2012 06:55 PM, Eric Blake wrote: > On 08/30/2012 11:47 AM, Jeff Cody wrote: >> Signed-off-by: Jeff Cody >> --- >> qerror.h | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/qerror.h b/qerror.h >> index d0a76a4..7396184 100644 >> --- a/qerror.h >> +++ b/qerror.h >> @@ -219,6 +219,9 @@ void assert_no_error(Error *err); >> #define QERR_TOO_MANY_FILES \ >> ERROR_CLASS_GENERIC_ERROR, "Too many open files" >> >> +#define QERR_TOP_NOT_FOUND \ >> + ERROR_CLASS_GENERIC_ERROR, "Top image file %s not found" >> + > > Are you sure this patch is needed, or should you be using error_setg()? > > http://lists.gnu.org/archive/html/qemu-devel/2012-08/msg04980.html > I think you are right, error_setg() would be the best course - although I based these patches only on what was in qemu/master currently.