ia64/xen-unstable

changeset 13897:c67a4115a471

Print all by default in debug builds.
author kfraser@localhost.localdomain
date Fri Feb 09 17:38:33 2007 +0000 (2007-02-09)
parents d39e8c44da34
children ad9bbd103034
files xen/drivers/char/console.c
line diff
     1.1 --- a/xen/drivers/char/console.c	Fri Feb 09 10:48:41 2007 +0000
     1.2 +++ b/xen/drivers/char/console.c	Fri Feb 09 17:38:33 2007 +0000
     1.3 @@ -72,10 +72,17 @@ static DEFINE_SPINLOCK(console_lock);
     1.4   * Note, in the above algorithm, to disable rate limiting simply make
     1.5   * the lower threshold equal to the upper.
     1.6   */
     1.7 +#ifdef NDEBUG
     1.8  #define XENLOG_UPPER_THRESHOLD       2 /* Do not print INFO and DEBUG  */
     1.9  #define XENLOG_LOWER_THRESHOLD       2 /* Always print ERR and WARNING */
    1.10  #define XENLOG_GUEST_UPPER_THRESHOLD 2 /* Do not print INFO and DEBUG  */
    1.11  #define XENLOG_GUEST_LOWER_THRESHOLD 0 /* Rate-limit ERR and WARNING   */
    1.12 +#else
    1.13 +#define XENLOG_UPPER_THRESHOLD       4 /* Do not discard anything      */
    1.14 +#define XENLOG_LOWER_THRESHOLD       4 /* Print everything             */
    1.15 +#define XENLOG_GUEST_UPPER_THRESHOLD 4 /* Do not discard anything      */
    1.16 +#define XENLOG_GUEST_LOWER_THRESHOLD 4 /* Print everything             */
    1.17 +#endif
    1.18  /*
    1.19   * The XENLOG_DEFAULT is the default given to printks that
    1.20   * do not have any print level associated with them.