From 40e2c5ec2ca93e7f06b320ba01f7be36ef254cd4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 28 Sep 2016 14:45:21 +0100 Subject: [PATCH] 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 --- platform/xen/librumpxen_xendev/Makefile | 5 +++++ platform/xen/librumpxen_xendev/rumpxen_xendev.h | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.5