[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Don't compile HVM_DBG_LOG into xen by default.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID af04fef70bada7326089573af3fac0183ef8bdfe
# Parent  316fafc6d74392358e85abd60eda5c6dbb991794
Don't compile HVM_DBG_LOG into xen by default.

Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>
Signed-off-by: Jun Nakajima <jun.nakajima@xxxxxxxxx>

diff -r 316fafc6d743 -r af04fef70bad xen/arch/x86/hvm/vioapic.c
--- a/xen/arch/x86/hvm/vioapic.c        Thu Mar  2 20:36:03 2006
+++ b/xen/arch/x86/hvm/vioapic.c        Thu Mar  2 20:37:14 2006
@@ -56,8 +56,8 @@
 {
     RedirStatus redir = s->redirtbl[entry];
 
-    HVM_DBG_LOG(DBG_LEVEL_IOAPIC, "ioapic_dump_redir "
-      "entry %x vector %x deliver_mod %x destmode %x delivestatus %x "
+    printk("ioapic_dump_redir entry %x vector %x "
+      "deliver_mod %x destmode %x delivestatus %x "
       "polarity %x remote_irr %x trigmod %x mask %x dest_id %x\n",
       entry, redir.RedirForm.vector, redir.RedirForm.deliver_mode,
       redir.RedirForm.destmode, redir.RedirForm.delivestatus,
diff -r 316fafc6d743 -r af04fef70bad xen/include/asm-x86/hvm/support.h
--- a/xen/include/asm-x86/hvm/support.h Thu Mar  2 20:36:03 2006
+++ b/xen/include/asm-x86/hvm/support.h Thu Mar  2 20:37:14 2006
@@ -26,7 +26,11 @@
 #include <asm/regs.h>
 #include <asm/processor.h>
 
+#ifndef NDEBUG
 #define HVM_DEBUG 1
+#else
+#define HVM_DEBUG 0
+#endif
 
 #define        HVM_DOMAIN(v)   ((v)->arch.guest_context.flags & VGCF_HVM_GUEST)
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.