summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2011-08-17 18:31:58 -0500
committerColin Cross <ccross@android.com>2012-02-14 11:25:33 -0800
commitf68f4c8dd669509a97645b3c5ab7c53117a106e0 (patch)
treee9c63e93aee177d52415fbdc8bae8254e1a22564 /include/linux/kernel.h
parentdd1e2d7d3b95e53be5d628a66ca755d6effba55b (diff)
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 e8343422240..71814b50b8a 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -768,4 +768,7 @@ struct sysinfo {
char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */
};
+/* To identify board information in panic logs, set this */
+extern char *mach_panic_string;
+
#endif