From: Christopher Clark Date: Wed, 6 Feb 2019 08:55:00 +0000 (+0100) Subject: argo: define argo_dprintk for subsystem debugging X-Git-Tag: xen-pt-allocation-1.1-base~24 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c452c85f6fe6ad09c0b46b77c45216863f12c5b4;p=people%2Fliuw%2Fxen.git argo: define argo_dprintk for subsystem debugging A convenience for working on development of the argo subsystem: setting a #define variable enables additional debug messages. Signed-off-by: Christopher Clark Acked-by: Jan Beulich Reviewed-by: Roger Pau Monné --- diff --git a/xen/common/argo.c b/xen/common/argo.c index dd2390d3f3..ada1aaf937 100644 --- a/xen/common/argo.c +++ b/xen/common/argo.c @@ -19,6 +19,15 @@ #include #include +/* Change this to #define ARGO_DEBUG here to enable more debug messages */ +#undef ARGO_DEBUG + +#ifdef ARGO_DEBUG +#define argo_dprintk(format, args...) printk("argo: " format, ## args ) +#else +#define argo_dprintk(format, ... ) ((void)0) +#endif + long do_argo_op(unsigned int cmd, XEN_GUEST_HANDLE_PARAM(void) arg1, XEN_GUEST_HANDLE_PARAM(void) arg2, unsigned long raw_arg3,