X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fos_debug.c;h=9e6ceba9679cc16c4ac571a86524230731d3ee7d;hb=4c4382c3fa7e7e87c260b6bb473220d0081ca1d5;hp=963fd888288f232ce839d2bc2e6751015d20d2b2;hpb=14fa18cc54571eaa7aaa0f7d55677bdb4dad81a6;p=palacios.git diff --git a/palacios/src/devices/os_debug.c b/palacios/src/devices/os_debug.c index 963fd88..9e6ceba 100644 --- a/palacios/src/devices/os_debug.c +++ b/palacios/src/devices/os_debug.c @@ -104,17 +104,17 @@ static struct v3_device_ops dev_ops = { static int debug_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { struct debug_state * state = NULL; - char * name = v3_cfg_val(cfg, "name"); + char * dev_id = v3_cfg_val(cfg, "ID"); state = (struct debug_state *)V3_Malloc(sizeof(struct debug_state)); PrintDebug("Creating OS Debug Device\n"); - struct vm_device * dev = v3_allocate_device(name, &dev_ops, state); + struct vm_device * dev = v3_allocate_device(dev_id, &dev_ops, 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; }