]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix detection of errors in QEMU device_add command
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Mar 2010 17:16:30 +0000 (17:16 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 3 Mar 2010 14:56:15 +0000 (14:56 +0000)
commit44f687297a7102c90cb0b85451c719c92a7a6dc1
treef114f28bbb6bb33b199b5b1e0173ce551b2a8493
parenta8464c516b49eece19f6fb36974b441c509d07d3
Fix detection of errors in QEMU device_add command

The code assumed that 'device_add' returned an empty string upon
success. This is not true, it sometimes prints random debug info.
THus we need to check for an explicit fail string

* src/qemu/qemu_monitor_text.c: Fix error checking of the device_add
  monitor command
src/qemu/qemu_monitor_text.c