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

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

Advertisement

Kernel v2.4.11 /kernel/panic.c

Filename:/kernel/panic.c
Lines Added:21
Lines Deleted:0
Also changed in: (Previous) 2.4.11-pre6  2.4.11-pre5  2.4.11-pre4  2.4.11-pre3  2.4.11-pre2  2.4.10-ac10 
(Following) 2.4.12-ac1  2.4.12-ac2  2.4.12-ac3  2.4.12-ac4  2.4.12-ac5  2.4.12-ac6 

Location
[  2.4.11
  [  kernel
     o  panic.c

Patch

diff -u --recursive --new-file v2.4.10/linux/kernel/panic.c linux/kernel/panic.c
--- v2.4.10/linux/kernel/panic.c   Sun Sep 23 11:41:01 2001
+++ linux/kernel/panic.c   Sun Sep 30 12:26:08 2001
@@ -99,3 +99,24 @@
       CHECK_EMERGENCY_SYNC
    }
 }
+
+/**
+ *   print_tainted - return a string to represent the kernel taint state.
+ *
+ *   The string is overwritten by the next call to print_taint().
+ */
+ 
+const char *print_tainted()
+{
+   static char buf[20];
+   if (tainted) {
+      snprintf(buf, sizeof(buf), "Tainted: %c%c",
+         tainted & 1 ? 'P' : 'G',
+         tainted & 2 ? 'F' : ' ');
+   }
+   else
+      snprintf(buf, sizeof(buf), "Not tainted");
+   return(buf);
+}
+
+int tainted = 0;


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