Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114732
b: refs/heads/master
c: 6d5cd6e
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Oct 16, 2008
1 parent e9463ba commit 2fa8514
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2223c65103d2aa8d0e9c48a956035a1e0353233d
refs/heads/master: 6d5cd6effed5f8c958a6c0df56da336f5a4fdb8a
30 changes: 15 additions & 15 deletions trunk/kernel/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,6 @@ NORET_TYPE void panic(const char * fmt, ...)

EXPORT_SYMBOL(panic);

/**
* print_tainted - return a string to represent the kernel taint state.
*
* 'P' - Proprietary module has been loaded.
* 'F' - Module has been forcibly loaded.
* 'S' - SMP with CPUs not designed for SMP.
* 'R' - User forced a module unload.
* '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().
*/

struct tnt {
u8 bit;
Expand All @@ -178,6 +163,21 @@ static const struct tnt tnts[] = {
{ TAINT_WARN, 'W', ' ' },
};

/**
* print_tainted - return a string to represent the kernel taint state.
*
* 'P' - Proprietary module has been loaded.
* 'F' - Module has been forcibly loaded.
* 'S' - SMP with CPUs not designed for SMP.
* 'R' - User forced a module unload.
* '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().
*/
const char *print_tainted(void)
{
static char buf[ARRAY_SIZE(tnts) + sizeof("Tainted: ") + 1];
Expand Down

0 comments on commit 2fa8514

Please sign in to comment.