X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fnvram.c;h=e2d1e05e6ed8cf34ec3163b26bad300e557eefeb;hb=1df601c90b519a54b64ca101fd6aa4c0a39bf0f0;hp=fb9b3193aaf75c9ec3e8e1e36de6849737f8cf21;hpb=3e5e5a12e64630d7a37ed32b8d7e2d993c79f7e0;p=palacios.git diff --git a/palacios/src/devices/nvram.c b/palacios/src/devices/nvram.c index fb9b319..e2d1e05 100644 --- a/palacios/src/devices/nvram.c +++ b/palacios/src/devices/nvram.c @@ -791,7 +791,7 @@ static struct v3_device_ops dev_ops = { static int nvram_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { struct nvram_internal * nvram_state = NULL; struct vm_device * ide = v3_find_dev(vm, v3_cfg_val(cfg, "storage")); - char * name = v3_cfg_val(cfg, "name"); + char * dev_id = v3_cfg_val(cfg, "ID"); if (!ide) { PrintError("Could not find IDE device\n"); @@ -805,11 +805,11 @@ static int nvram_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { nvram_state->ide = ide; - struct vm_device * dev = v3_allocate_device(name, &dev_ops, nvram_state); + struct vm_device * dev = v3_allocate_device(dev_id, &dev_ops, nvram_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; }