X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fswapbypass_cache2.c;h=bc83762db36f1768082f073fae92dc28c3124640;hb=35a7784f058e9f6948e1ec455ce2c6c3d467330b;hp=72ff58f4f26856b32ac3d6a1194e4dede7db85d4;hpb=8a8e371fd9be4513214a0013063d87ecbc5582c1;p=palacios.git diff --git a/palacios/src/devices/swapbypass_cache2.c b/palacios/src/devices/swapbypass_cache2.c index 72ff58f..bc83762 100644 --- a/palacios/src/devices/swapbypass_cache2.c +++ b/palacios/src/devices/swapbypass_cache2.c @@ -599,17 +599,17 @@ static int connect_fn(struct v3_vm_info * vm, static int swap_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { - char * name = v3_cfg_val(cfg, "name"); + char * dev_id = v3_cfg_val(cfg, "ID"); - struct vm_device * dev = v3_allocate_device(name, &dev_ops, NULL); + struct vm_device * dev = v3_allocate_device(dev_id, &dev_ops, NULL); 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; } - if (v3_dev_add_blk_frontend(vm, name, connect_fn, NULL) == -1) { - PrintError("Could not register %s as block frontend\n", name); + if (v3_dev_add_blk_frontend(vm, dev_id, connect_fn, NULL) == -1) { + PrintError("Could not register %s as block frontend\n", dev_id); return -1; }