summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2011-08-17 18:31:58 -0500
committerArve Hjønnevåg <arve@android.com>2013-07-01 13:34:57 -0700
commit7c8e532facb35ab9ec883184bc00b2966638f766 (patch)
tree01143dcef09a31eff054e6e6205734007a192003 /include/linux/kernel.h
parentb47faa23a40143b2545297b4d626e34feabf33cd (diff)
downloadolio-linux-3.10-7c8e532facb35ab9ec883184bc00b2966638f766.tar.xz
olio-linux-3.10-7c8e532facb35ab9ec883184bc00b2966638f766.zip
panic: Add board ID to panic output
At times, it is necessary for boards to provide some additional information as part of panic logs. Provide information on the board hardware as part of panic logs. It is safer to print this information at the very end in case something bad happens as part of the information retrieval itself. To use this, set global mach_panic_string to an appropriate string in the board file. Change-Id: Id12cdda87b0cd2940dd01d52db97e6162f671b4d Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index e9ef6d6b51d..eabc56d0f82 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -792,4 +792,7 @@ static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { }
# define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD
#endif
+/* To identify board information in panic logs, set this */
+extern char *mach_panic_string;
+
#endif