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

[Xen-devel] [PATCH v2 03/18] 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.

Signed-off-by: Christopher Clark <christopher.clark6@xxxxxxxxxxxxxx>
Changes since v1:

v1 #04 feedback, Jan:
    remove do-while from definition
    fully parenthesize the macro expansion
    remove code snippet from the commit message
    add #define ARGO_DEBUG 0 to the file

Correct plural comment to singlar

 xen/common/argo.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/xen/common/argo.c b/xen/common/argo.c
index cefd64f..98f40b5 100644
--- a/xen/common/argo.c
+++ b/xen/common/argo.c
@@ -19,6 +19,19 @@
 #include <xen/errno.h>
 #include <xen/guest_access.h>
+ * Debug
+ */
+/* Set ARGO_DEBUG to 1 here to enable more debug messages */
+#define ARGO_DEBUG 0
+#ifdef ARGO_DEBUG
+#define argo_dprintk(format, args...) printk("argo: " format, ## args )
+#define argo_dprintk(format, ... ) ((void)0)
 do_argo_message_op(unsigned int cmd, XEN_GUEST_HANDLE_PARAM(void) arg1,
                    XEN_GUEST_HANDLE_PARAM(void) arg2,

Xen-devel mailing list



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