Skip to content

Commit

Permalink
x86: coding style fixes to arch/x86/kernel/traps_64.c
Browse files Browse the repository at this point in the history
Fix coding style of traps_64.c with improvements suggested by Ingo.

Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Gustavo F. Padovan authored and Ingo Molnar committed Aug 15, 2008
1 parent d9336a9 commit 48e2bd5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions arch/x86/kernel/traps_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ static inline void preempt_conditional_cli(struct pt_regs *regs)

void printk_address(unsigned long address, int reliable)
{
printk(" [<%016lx>] %s%pS\n", address, reliable ?
"" : "? ", (void *) address);
printk(" [<%016lx>] %s%pS\n",
address, reliable ? "" : "? ", (void *) address);
}

static unsigned long *in_exception_stack(unsigned cpu, unsigned long stack,
Expand All @@ -98,8 +98,8 @@ static unsigned long *in_exception_stack(unsigned cpu, unsigned long stack,
[STACKFAULT_STACK - 1] = "#SS",
[MCE_STACK - 1] = "#MC",
#if DEBUG_STKSZ > EXCEPTION_STKSZ
[N_EXCEPTION_STACKS ... N_EXCEPTION_STACKS + DEBUG_STKSZ /
EXCEPTION_STKSZ - 2] = "#DB[?]"
[N_EXCEPTION_STACKS ...
N_EXCEPTION_STACKS + DEBUG_STKSZ / EXCEPTION_STKSZ - 2] = "#DB[?]"
#endif
};
unsigned k;
Expand Down Expand Up @@ -363,8 +363,10 @@ show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
unsigned long *irqstack =
(unsigned long *) (cpu_pda(cpu)->irqstackptr - IRQSTACKSIZE);

/* debugging aid: "show_stack(NULL, NULL);" prints the
back trace for this cpu. */
/*
* debugging aid: "show_stack(NULL, NULL);" prints the
* back trace for this cpu.
*/

if (sp == NULL) {
if (task)
Expand Down

0 comments on commit 48e2bd5

Please sign in to comment.