Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.26-rc1 /kernel/panic.c

Filename:/kernel/panic.c
Lines Added:6
Lines Deleted:2
Also changed in: (Previous) 2.6.25-git20  2.6.25-git19  2.6.25-git18  2.6.25-git17  2.6.25-git16  2.6.25-git15 
(Following) 2.6.26-rc2  2.6.26-rc3  2.6.26-rc4  2.6.26-rc5  2.6.26-rc6  2.6.26-rc7 

Location
[  2.6.26-rc1
  [  kernel
     o  panic.c

Patch

diff --git a/kernel/panic.c b/kernel/panic.c
index 24af9f8..425567f 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -153,6 +153,8 @@ EXPORT_SYMBOL(panic);
  *  'M' - System experienced a machine check exception.
  *  'B' - System has hit bad_page.
  *  'U' - Userspace-defined naughtiness.
+ *  'A' - ACPI table overridden.
+ *  'W' - Taint on warning.
  *
  *   The string is overwritten by the next call to print_taint().
  */
@@ -161,7 +163,7 @@ const char *print_tainted(void)
 {
    static char buf[20];
    if (tainted) {
-      snprintf(buf, sizeof(buf), "Tainted: %c%c%c%c%c%c%c%c%c",
+      snprintf(buf, sizeof(buf), "Tainted: %c%c%c%c%c%c%c%c%c%c",
          tainted & TAINT_PROPRIETARY_MODULE ? 'P' : 'G',
          tainted & TAINT_FORCED_MODULE ? 'F' : ' ',
          tainted & TAINT_UNSAFE_SMP ? 'S' : ' ',
@@ -170,7 +172,8 @@ const char *print_tainted(void)
          tainted & TAINT_BAD_PAGE ? 'B' : ' ',
          tainted & TAINT_USER ? 'U' : ' ',
          tainted & TAINT_DIE ? 'D' : ' ',
-         tainted & TAINT_OVERRIDDEN_ACPI_TABLE ? 'A' : ' ');
+         tainted & TAINT_OVERRIDDEN_ACPI_TABLE ? 'A' : ' ',
+         tainted & TAINT_WARN ? 'W' : ' ');
    }
    else
       snprintf(buf, sizeof(buf), "Not tainted");
@@ -312,6 +315,7 @@ void warn_on_slowpath(const char *file, int line)
    print_modules();
    dump_stack();
    print_oops_end_marker();
+   add_taint(TAINT_WARN);
 }
 EXPORT_SYMBOL(warn_on_slowpath);
 #endif


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.