[2/5] x86: nmi_watchdog - use nmi_watchdog variable for printing
diff mbox series

Message ID 48611ec2.1636440a.75ee.2503@mx.google.com
State New, archived
Headers show
Series
  • [1/5] x86: perfctr-watchdog.c - coding style cleanup
Related show

Commit Message

Cyrill Gorcunov Jan. 1, 1970, midnight UTC
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>
---

Patch
diff mbox series

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();
 }