2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-18 23:54:26 +08:00

whitespace fixes: panic handling

Signed-off-by: Daniel Walker <dwalker@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Daniel Walker 2007-10-18 03:06:08 -07:00 committed by Linus Torvalds
parent 22a8bdeb53
commit c277e63fbe

View File

@ -56,14 +56,14 @@ EXPORT_SYMBOL(panic_blink);
* *
* This function never returns. * This function never returns.
*/ */
NORET_TYPE void panic(const char * fmt, ...) NORET_TYPE void panic(const char * fmt, ...)
{ {
long i; long i;
static char buf[1024]; static char buf[1024];
va_list args; va_list args;
#if defined(CONFIG_S390) #if defined(CONFIG_S390)
unsigned long caller = (unsigned long) __builtin_return_address(0); unsigned long caller = (unsigned long) __builtin_return_address(0);
#endif #endif
/* /*
@ -128,7 +128,7 @@ NORET_TYPE void panic(const char * fmt, ...)
} }
#endif #endif
#if defined(CONFIG_S390) #if defined(CONFIG_S390)
disabled_wait(caller); disabled_wait(caller);
#endif #endif
local_irq_enable(); local_irq_enable();
for (i = 0;;) { for (i = 0;;) {
@ -154,7 +154,7 @@ EXPORT_SYMBOL(panic);
* *
* The string is overwritten by the next call to print_taint(). * The string is overwritten by the next call to print_taint().
*/ */
const char *print_tainted(void) const char *print_tainted(void)
{ {
static char buf[20]; static char buf[20];
@ -164,7 +164,7 @@ const char *print_tainted(void)
tainted & TAINT_FORCED_MODULE ? 'F' : ' ', tainted & TAINT_FORCED_MODULE ? 'F' : ' ',
tainted & TAINT_UNSAFE_SMP ? 'S' : ' ', tainted & TAINT_UNSAFE_SMP ? 'S' : ' ',
tainted & TAINT_FORCED_RMMOD ? 'R' : ' ', tainted & TAINT_FORCED_RMMOD ? 'R' : ' ',
tainted & TAINT_MACHINE_CHECK ? 'M' : ' ', tainted & TAINT_MACHINE_CHECK ? 'M' : ' ',
tainted & TAINT_BAD_PAGE ? 'B' : ' ', tainted & TAINT_BAD_PAGE ? 'B' : ' ',
tainted & TAINT_USER ? 'U' : ' ', tainted & TAINT_USER ? 'U' : ' ',
tainted & TAINT_DIE ? 'D' : ' '); tainted & TAINT_DIE ? 'D' : ' ');