From 71444c520f32fa633e92a3311bb4fbedc8a9518f Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 9 Feb 2007 17:38:33 +0000 Subject: [PATCH] Print all by default in debug builds. --- xen/drivers/char/console.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index cfc7e98a17..03045963c9 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -72,10 +72,17 @@ static DEFINE_SPINLOCK(console_lock); * Note, in the above algorithm, to disable rate limiting simply make * the lower threshold equal to the upper. */ +#ifdef NDEBUG #define XENLOG_UPPER_THRESHOLD 2 /* Do not print INFO and DEBUG */ #define XENLOG_LOWER_THRESHOLD 2 /* Always print ERR and WARNING */ #define XENLOG_GUEST_UPPER_THRESHOLD 2 /* Do not print INFO and DEBUG */ #define XENLOG_GUEST_LOWER_THRESHOLD 0 /* Rate-limit ERR and WARNING */ +#else +#define XENLOG_UPPER_THRESHOLD 4 /* Do not discard anything */ +#define XENLOG_LOWER_THRESHOLD 4 /* Print everything */ +#define XENLOG_GUEST_UPPER_THRESHOLD 4 /* Do not discard anything */ +#define XENLOG_GUEST_LOWER_THRESHOLD 4 /* Print everything */ +#endif /* * The XENLOG_DEFAULT is the default given to printks that * do not have any print level associated with them. -- 2.30.2