Print all by default in debug builds.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 9 Feb 2007 17:38:33 +0000 (17:38 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 9 Feb 2007 17:38:33 +0000 (17:38 +0000)
xen/drivers/char/console.c

index cfc7e98a17ab97e2fb4e3d294873ad99ea611462..03045963c9d2b1314f3bf2472c689c31f3caada4 100644 (file)
@@ -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.