From: Ian Jackson Date: Wed, 28 Sep 2016 13:45:21 +0000 (+0100) Subject: librumpxen_xendev: Reorganise debug enablement slightly X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=40e2c5ec2ca93e7f06b320ba01f7be36ef254cd4;p=osstest%2Frumprun.git librumpxen_xendev: Reorganise debug enablement slightly Invite people to turn on debug by defining the make variable RUMP_DEV_XEN_DEBUG rather than by editing .c files. Signed-off-by: Ian Jackson --- diff --git a/platform/xen/librumpxen_xendev/Makefile b/platform/xen/librumpxen_xendev/Makefile index 44321c4..5b7e938 100644 --- a/platform/xen/librumpxen_xendev/Makefile +++ b/platform/xen/librumpxen_xendev/Makefile @@ -20,6 +20,11 @@ RUMPCOMP_USER_CPPFLAGS+= -I${.CURDIR}/.. RUMPCOMP_USER_CPPFLAGS+= -I${.CURDIR}/../xen/include RUMPCOMP_USER_CPPFLAGS+= -I${.CURDIR}/../../../include +.ifdef RUMP_DEV_XEN_DEBUG +CPPFLAGS+= -DRUMP_DEV_XEN_DEBUG=1 +RUMPCOMP_USER_CPPFLAGS+= -DRUMP_DEV_XEN_DEBUG=1 +.endif + # XXX .undef RUMPKERN_ONLY diff --git a/platform/xen/librumpxen_xendev/rumpxen_xendev.h b/platform/xen/librumpxen_xendev/rumpxen_xendev.h index b9fa78c..daad718 100644 --- a/platform/xen/librumpxen_xendev/rumpxen_xendev.h +++ b/platform/xen/librumpxen_xendev/rumpxen_xendev.h @@ -39,8 +39,6 @@ #include -//#define RUMP_DEV_XEN_DEBUG 1 - #ifdef RUMP_DEV_XEN_DEBUG #define DPRINTF(a) (printf a) #else