X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fpci.c;h=267eca1781084dafcfdfdf830d0731b90a0cee71;hb=4c4382c3fa7e7e87c260b6bb473220d0081ca1d5;hp=f43d36d14fcf34c89dab99f8a1ba759274fa9609;hpb=22f1d78afcf33835e3fa43ea41bb43f80f761a8a;p=palacios.git diff --git a/palacios/src/devices/pci.c b/palacios/src/devices/pci.c index f43d36d..267eca1 100644 --- a/palacios/src/devices/pci.c +++ b/palacios/src/devices/pci.c @@ -655,14 +655,14 @@ static struct v3_device_ops dev_ops = { static int pci_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { struct pci_internal * pci_state = V3_Malloc(sizeof(struct pci_internal)); int i = 0; - char * name = v3_cfg_val(cfg, "name"); + char * dev_id = v3_cfg_val(cfg, "ID"); PrintDebug("PCI internal at %p\n",(void *)pci_state); - struct vm_device * dev = v3_allocate_device(name, &dev_ops, pci_state); + struct vm_device * dev = v3_allocate_device(dev_id, &dev_ops, pci_state); if (v3_attach_device(vm, dev) == -1) { - PrintError("Could not attach device %s\n", name); + PrintError("Could not attach device %s\n", dev_id); return -1; }