Received: from [140.186.70.92] (port=57020 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4uKT-00009h-EK for qemu-devel@nongnu.org; Wed, 30 Mar 2011 08:16:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4uKS-0008JF-5B for qemu-devel@nongnu.org; Wed, 30 Mar 2011 08:16:53 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:44183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4uKR-0008IP-Rs for qemu-devel@nongnu.org; Wed, 30 Mar 2011 08:16:52 -0400 From: Michael Tokarev Date: Wed, 30 Mar 2011 16:16:46 +0400 Message-Id: <1301487406-21661-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PATCH] trivial: fix comment around qdev_init_nofail() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Tokarev 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 --- 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