X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_dev_mgr.c;h=c21295846b26801e536a4321430a1d7dd84d6a79;hb=82b8b87c344fcd1eab22e3f3be5ad54cbb3f8f68;hp=fcbd93c7d56b75d67778c838beca9777334ad336;hpb=37c18b2c2335a41c68c2f0b779fd2b7d51ab216d;p=palacios.git diff --git a/palacios/src/palacios/vmm_dev_mgr.c b/palacios/src/palacios/vmm_dev_mgr.c index fcbd93c..c212958 100644 --- a/palacios/src/palacios/vmm_dev_mgr.c +++ b/palacios/src/palacios/vmm_dev_mgr.c @@ -23,7 +23,7 @@ #include -#ifndef DEBUG_DEV_MGR +#ifndef CONFIG_DEBUG_DEV_MGR #undef PrintDebug #define PrintDebug(fmt, args...) #endif @@ -48,11 +48,15 @@ int v3_init_devices() { extern struct v3_device_info __start__v3_devices[]; extern struct v3_device_info __stop__v3_devices[]; struct v3_device_info * tmp_dev = __start__v3_devices; - int num_devices = (__stop__v3_devices - __start__v3_devices) / sizeof(struct v3_device_info); int i = 0; +#ifdef CONFIG_DEBUG_DEV_MGR + { + int num_devices = (__stop__v3_devices - __start__v3_devices) / sizeof(struct v3_device_info); + PrintDebug("%d Virtual devices registered with Palacios\n", num_devices); + } +#endif - PrintDebug("%d Virtual devices registered with Palacios\n", num_devices); PrintDebug("Start addres=%p, Stop address=%p\n", __start__v3_devices, __stop__v3_devices); master_dev_table = v3_create_htable(0, dev_hash_fn, dev_eq_fn); @@ -209,7 +213,7 @@ int v3_attach_device(struct guest_info * vm, struct vm_device * dev ) { } -#ifdef DEBUG_DEV_MGR +#ifdef CONFIG_DEBUG_DEV_MGR void PrintDebugDevMgr(struct guest_info * info) { struct vmm_dev_mgr * mgr = &(info->dev_mgr);