X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_dev_mgr.c;h=df66d27cf9c0fcf185ca338cc2be6c49f9d8cb34;hb=c2e660b41f69c603b0c47f7c7572a22a2f601a51;hp=258e85840971e1b9c0c6b1ad6ef4a1e2a8ed2f6e;hpb=cafbc1318c847b8c18e2036dc56be7af7acefa4e;p=palacios.git diff --git a/palacios/src/palacios/vmm_dev_mgr.c b/palacios/src/palacios/vmm_dev_mgr.c index 258e858..df66d27 100644 --- a/palacios/src/palacios/vmm_dev_mgr.c +++ b/palacios/src/palacios/vmm_dev_mgr.c @@ -24,11 +24,13 @@ #include - -#ifndef NULL -#define NULL 0 +#ifndef DEBUG_DEV_MGR +#undef PrintDebug +#define PrintDebug(fmt, args...) #endif + + int dev_mgr_init(struct guest_info * info) { struct vmm_dev_mgr * mgr = &(info->dev_mgr); INIT_LIST_HEAD(&(mgr->dev_list)); @@ -264,6 +266,7 @@ int dev_mgr_unhook_mem(struct vm_device *dev, +#ifdef DEBUG_DEV_MGR void PrintDebugDevMgr(struct guest_info * info) { struct vmm_dev_mgr * mgr = &(info->dev_mgr); @@ -300,3 +303,10 @@ void PrintDebugDevIO(struct vm_device * dev) { return; } + +#else +void PrintDebugDevMgr(struct guest_info * info) {} +void PrintDebugDev(struct vm_device * dev) {} +void PrintDebugDevMgrIO(struct vmm_dev_mgr * mgr) {} +void PrintDebugDevIO(struct vm_device * dev) {} +#endif