[patch 2/5] x86: nmi_watchdog - use nmi_watchdog variable for printing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[patch 2/5] x86: nmi_watchdog - use nmi_watchdog variable for printing

Cyrill Gorcunov-2
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 <[hidden email]>
---

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

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Loading...