Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123193
b: refs/heads/master
c: bd89bb2
h: refs/heads/master
i:
  123191: 822cec1
v: v3
  • Loading branch information
Arjan van de Ven authored and Ingo Molnar committed Nov 28, 2008
1 parent e3c0047 commit 4ac6b1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74853dba2f7a1a9b0905a09abcf65c1f3ce0b14f
refs/heads/master: bd89bb29a01503c5cffa367eccb0b356f910cb8d
6 changes: 6 additions & 0 deletions trunk/kernel/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/debug_locks.h>
#include <linux/random.h>
#include <linux/kallsyms.h>
#include <linux/dmi.h>

int panic_on_oops;
static unsigned long tainted_mask;
Expand Down Expand Up @@ -325,11 +326,16 @@ void warn_slowpath(const char *file, int line, const char *fmt, ...)
va_list args;
char function[KSYM_SYMBOL_LEN];
unsigned long caller = (unsigned long)__builtin_return_address(0);
const char *board;

sprint_symbol(function, caller);

printk(KERN_WARNING "------------[ cut here ]------------\n");
printk(KERN_WARNING "WARNING: at %s:%d %s()\n", file,
line, function);
board = dmi_get_system_info(DMI_PRODUCT_NAME);
if (board)
printk(KERN_WARNING "Hardware name: %s\n", board);

if (fmt) {
va_start(args, fmt);
Expand Down

0 comments on commit 4ac6b1c

Please sign in to comment.