summary refs log tree commit diff stats
path: root/hw/qdev.c
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2011-04-06 17:51:59 +0400
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-04-07 14:25:53 +0100
commit3b29a1018457875a983bf10667cfe3a80c9d6dfd (patch)
treee890de005164282ce8c15dd4c1f09653949641ac /hw/qdev.c
parent62a2ab6aed53f30080c4151044c90945d16ac5fd (diff)
downloadfocaccia-qemu-3b29a1018457875a983bf10667cfe3a80c9d6dfd.tar.gz
focaccia-qemu-3b29a1018457875a983bf10667cfe3a80c9d6dfd.zip
qdev: Fix comment around qdev_init_nofail()
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 <mjt@tls.msk.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r--hw/qdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 1aa1ea0e26..9519f5dd57 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -358,7 +358,8 @@ 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