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.cla...@baesystems.com> --- 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@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel