X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-i386%2Fapic.h;h=8135c7c290f23a054eb4e9c1f9326603564ee5e7;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=95cc9c1baac7320628710be3a64420f42f040bc3;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/asm-i386/apic.h b/include/asm-i386/apic.h index 95cc9c1ba..8135c7c29 100644 --- a/include/asm-i386/apic.h +++ b/include/asm-i386/apic.h @@ -7,13 +7,28 @@ #include #include -#define APIC_DEBUG 0 - -#if APIC_DEBUG -#define Dprintk(x...) printk(x) -#else #define Dprintk(x...) -#endif + +/* + * Debugging macros + */ +#define APIC_QUIET 0 +#define APIC_VERBOSE 1 +#define APIC_DEBUG 2 + +extern int apic_verbosity; + +/* + * Define the default level of output to be very little + * This can be turned up by using apic=verbose for more + * information and apic=debug for _lots_ of information. + * apic_verbosity is defined in apic.c + */ +#define apic_printk(v, s, a...) do { \ + if ((v) <= apic_verbosity) \ + printk(s, ##a); \ + } while (0) + #ifdef CONFIG_X86_LOCAL_APIC