| Kernel v2.4.11 /kernel/panic.c |
|---|
 2.4.11
 kernel
 panic.c
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;
|