]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
librumpxen_xendev: Reorganise debug enablement slightly
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 28 Sep 2016 13:45:21 +0000 (14:45 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 7 Oct 2016 18:02:37 +0000 (19:02 +0100)
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 <Ian.Jackson@eu.citrix.com>
platform/xen/librumpxen_xendev/Makefile
platform/xen/librumpxen_xendev/rumpxen_xendev.h

index 44321c4375fe21f47c420e81532c1f2b48dbd0be..5b7e9381b02df6a883afbdf3776913c7edf63762 100644 (file)
@@ -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
 
index b9fa78c0f66dec831b2dea0f4992bd3737c2f248..daad71864fcc924e8570f5d4ede2e1e3971bdbf0 100644 (file)
@@ -39,8 +39,6 @@
 #include <sys/poll.h>
 
 
-//#define RUMP_DEV_XEN_DEBUG 1
-
 #ifdef RUMP_DEV_XEN_DEBUG
 #define DPRINTF(a) (printf a)
 #else