qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] trivial: fix comment around qdev_init_nofail()


From: Michael Tokarev
Subject: [Qemu-devel] [PATCH] trivial: fix comment around qdev_init_nofail()
Date: Wed, 06 Apr 2011 17:51:59 +0400
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.16) Gecko/20110307 Icedove/3.0.11

Resending (previous attempt was at Wed, 30 Mar 2011).

In previous life qdev_init_nofail() used to call hw_error() which
did register dump and other scary things.  Now it calls
error_report() and does a regular exit(1).  Fix the comment
to match reality.

Signed-off-by: Michael Tokarev <address@hidden>
---
 hw/qdev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/qdev.c b/hw/qdev.c
index 1aa1ea0..2f4846e 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -358,7 +358,7 @@ int qdev_simple_unplug_cb(DeviceState *dev)
     return 0;
 }
 -/* Like qdev_init(), but terminate program via hw_error() instead of
+/* Like qdev_init(), but terminate program via error_report() instead of
    returning an error value.  This is okay during machine creation.
    Don't use for hotplug, because there callers need to recover from
    failure.  Exception: if you know the device's init() callback can't
-- 
1.7.2.5





reply via email to

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