qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/2] error-report: provide error_report_exit()


From: Fam Zheng
Subject: Re: [Qemu-devel] [PATCH 1/2] error-report: provide error_report_exit()
Date: Tue, 16 Aug 2016 22:01:56 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, 08/16 22:00, Peter Xu wrote:
> On Tue, Aug 16, 2016 at 08:19:08PM +0800, Fam Zheng wrote:
> > On Tue, 08/16 20:17, Peter Xu wrote:
> > > > Do we really need error_report_exit when we already have error_fatal?
> > > 
> > > error_fatal is the name of a global var, not the function.
> > 
> > I mean most error_report_exit(...) calls can be converted to
> > error_setg(&error_fatal, ...).
> 
> Right. But it's just another way to implement error_report_fatal(). We
> may still need error_report_fatal() since it's cleaner and shorter
> than error_setg(&error_fatal, ...).

Then we should add both error_report_fatal and error_report_abort, or neither
of them.

Fam



reply via email to

[Prev in Thread] Current Thread [Next in Thread]