Commit 3b29a101 authored by Michael Tokarev's avatar Michael Tokarev Committed by Stefan Hajnoczi
Browse files

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: default avatarMichael Tokarev <mjt@tls.msk.ru>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
parent 62a2ab6a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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