[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qdev: show failing device name instead of silen
From: |
Amit Shah |
Subject: |
Re: [Qemu-devel] [PATCH] qdev: show failing device name instead of silently exiting |
Date: |
Thu, 24 Sep 2009 09:29:08 +0530 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
Hey Markus,
On (Wed) Sep 23 2009 [22:53:27], Markus Armbruster wrote:
> Amit Shah <address@hidden> writes:
>
> > If initializing a device fails, show the name of the device
> > and then exit
>
> "and then exit" is misleading, as you don't add an exit.
The 'return NULL' does that -- the calling function exits.
(doesn't the subject line clarify that?)
> > Signed-off-by: Amit Shah <address@hidden>
> > ---
> > hw/qdev.c | 1 +
> > 1 files changed, 1 insertions(+), 0 deletions(-)
> >
> > diff --git a/hw/qdev.c b/hw/qdev.c
> > index 1d79db0..62a6fc7 100644
> > --- a/hw/qdev.c
> > +++ b/hw/qdev.c
> > @@ -203,6 +203,7 @@ DeviceState *qdev_device_add(QemuOpts *opts)
> > return NULL;
> > }
> > if (qdev_init(qdev) != 0) {
> > + qemu_error("Error initializing device %s\n", driver);
> > qdev_free(qdev);
> > return NULL;
> > }
Amit
- [Qemu-devel] [PATCH] qdev: show failing device name instead of silently exiting, Amit Shah, 2009/09/23
- Re: [Qemu-devel] [PATCH] qdev: show failing device name instead of silently exiting, Markus Armbruster, 2009/09/23
- Re: [Qemu-devel] [PATCH] qdev: show failing device name instead of silently exiting,
Amit Shah <=
- Re: [Qemu-devel] [PATCH] qdev: show failing device name instead of silently exiting, Markus Armbruster, 2009/09/24
- Re: [Qemu-devel] [PATCH] qdev: show failing device name instead of silently exiting, Amit Shah, 2009/09/24
- Re: [Qemu-devel] [PATCH] qdev: show failing device name instead of silently exiting, Markus Armbruster, 2009/09/24
- Re: [Qemu-devel] [PATCH] qdev: show failing device name instead of silently exiting, Amit Shah, 2009/09/24
- Re: [Qemu-devel] [PATCH] qdev: show failing device name instead of silently exiting, Markus Armbruster, 2009/09/24
- Re: [Qemu-devel] [PATCH] qdev: show failing device name instead of silently exiting, Gerd Hoffmann, 2009/09/25