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

[Xen-devel] [PATCH 04/25] argo: define argo_dprintk for subsystem debugging



A convenience for working on development of the argo subsystem:
toggling a local #define variable turns on just the debug messages
in this subsystem.

  printk("argo: " format, ## args )

Signed-off-by: Christopher Clark <christopher.clark6@xxxxxxxxxxxxxx>
---
 xen/common/argo.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/xen/common/argo.c b/xen/common/argo.c
index 76017d4..6917f98 100644
--- a/xen/common/argo.c
+++ b/xen/common/argo.c
@@ -19,6 +19,19 @@
 #include <xen/errno.h>
 #include <xen/guest_access.h>
 
+/*
+ * Debugs
+ */
+
+#ifdef ARGO_DEBUG
+#define argo_dprintk(format, args...)            \
+    do {                                         \
+        printk("argo: " format, ## args );       \
+    } while ( 1 == 0 )
+#else
+#define argo_dprintk(format, ... ) (void)0
+#endif
+
 long
 do_argo_message_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg1,
                    XEN_GUEST_HANDLE_PARAM(void) arg2,
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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