X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fcirrus_gfx_card.c;h=d3b09c3e5ce4aa9a987e79ae625315a4450bdbd8;hb=4071a0ced0f209760c73e505c1634512abf29728;hp=25bf720bc06f1b25a68666ed117ed1613b6e91dc;hpb=123a1ba27ea09c8fa77a1b36ce625b43d7c48b14;p=palacios.git diff --git a/palacios/src/devices/cirrus_gfx_card.c b/palacios/src/devices/cirrus_gfx_card.c index 25bf720..d3b09c3 100644 --- a/palacios/src/devices/cirrus_gfx_card.c +++ b/palacios/src/devices/cirrus_gfx_card.c @@ -423,12 +423,12 @@ static struct v3_device_ops dev_ops = { static int cirrus_gfx_card_init(struct guest_info * vm, v3_cfg_tree_t * cfg){ struct video_internal * video_state = (struct video_internal *)V3_Malloc(sizeof(struct video_internal)); struct vm_device * pci_bus = v3_find_dev(vm, (char *)cfg_data); - char * name = v3_cfg_val(cfg, "name"); + char * dev_id = v3_cfg_val(cfg, "ID"); - struct vm_device * dev = v3_allocate_device("TEXT_GFX_CARD", &dev_ops, video_state); + struct vm_device * dev = v3_allocate_device(dev_id, &dev_ops, video_state); if (v3_attach_device(vm, dev) == -1) { - PrintError("Could not attach device %s\n", "TEXT_GFX_CARD"); + PrintError("Could not attach device %s\n", dev_id); return -1; }