Messages in this thread Patch in this message | | | Date | Thu, 01 Jan 1970 03:00:02 +0300 | From | Cyrill Gorcunov <> | Subject | [patch 2/5] x86: nmi_watchdog - use nmi_watchdog variable for printing |
| |
Since it is possible NMI_ definitions could be changed one day we better print out real nmi_watchdog value instead of constant string
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> ---
Index: linux-2.6.git/arch/x86/kernel/apic_32.c ==================================================================== --- linux-2.6.git.orig/arch/x86/kernel/apic_32.c 2008-06-22 23:02:50.000000000 +0400 +++ linux-2.6.git/arch/x86/kernel/apic_32.c 2008-06-23 18:38:49.000000000 +0400 @@ -550,7 +550,7 @@ void __init setup_boot_APIC_clock(void) lapic_clockevent.features &= ~CLOCK_EVT_FEAT_DUMMY; else printk(KERN_WARNING "APIC timer registered as dummy," - " due to nmi_watchdog=1!\n"); + " due to nmi_watchdog=%d!\n", nmi_watchdog); } /* Setup the lapic or request the broadcast */ Index: linux-2.6.git/arch/x86/kernel/apic_64.c ==================================================================== --- linux-2.6.git.orig/arch/x86/kernel/apic_64.c 2008-06-22 23:02:50.000000000 +0400 +++ linux-2.6.git/arch/x86/kernel/apic_64.c 2008-06-23 18:44:41.000000000 +0400 @@ -417,7 +417,7 @@ void __init setup_boot_APIC_clock(void) lapic_clockevent.features &= ~CLOCK_EVT_FEAT_DUMMY; else printk(KERN_WARNING "APIC timer registered as dummy," - " due to nmi_watchdog=1!\n"); + " due to nmi_watchdog=%d!\n", nmi_watchdog); setup_APIC_timer(); } --
| |