summaryrefslogtreecommitdiffstats
path: root/hw/qdev.c
diff options
context:
space:
mode:
authorMarkus Armbruster2011-06-22 14:03:54 +0200
committerStefan Hajnoczi2011-06-24 10:13:36 +0200
commit6daf194dde15acda153b824299f36f12dfa527a6 (patch)
treee501eb043697f6ec77338ef8fe4cb5602177fdb0 /hw/qdev.c
parentsheepdog: qemu_bh_new() can't return null pointer, drop check (diff)
downloadqemu-6daf194dde15acda153b824299f36f12dfa527a6.tar.gz
qemu-6daf194dde15acda153b824299f36f12dfa527a6.tar.xz
qemu-6daf194dde15acda153b824299f36f12dfa527a6.zip
Strip trailing '\n' from error_report()'s first argument
error_report() prepends location, and appends a newline. The message constructed from the arguments should not contain a newline. Fix the obvious offenders. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r--hw/qdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 2987901983..292b52f8c5 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -371,7 +371,7 @@ void qdev_init_nofail(DeviceState *dev)
DeviceInfo *info = dev->info;
if (qdev_init(dev) < 0) {
- error_report("Initialization of device %s failed\n", info->name);
+ error_report("Initialization of device %s failed", info->name);
exit(1);
}
}