Fix USB hotplug device string in QEMU driver

The USB hotplug method was mistakenly generating a PCI address
string

* src/qemu/qemu_driver.c: Fix USB hotplug device string
This commit is contained in:
Rolf Eike Beer 2010-03-01 20:59:05 +00:00 committed by Daniel P. Berrange
parent 8540dadbe9
commit 06973f7065

View File

@ -5927,7 +5927,7 @@ static int qemudDomainAttachHostUsbDevice(struct qemud_driver *driver,
char *devstr = NULL;
if ((qemuCmdFlags & QEMUD_CMD_FLAG_DEVICE) &&
!(devstr = qemuBuildPCIHostdevDevStr(hostdev)))
!(devstr = qemuBuildUSBHostdevDevStr(hostdev)))
goto error;
if (VIR_REALLOC_N(vm->def->hostdevs, vm->def->nhostdevs+1) < 0) {