Skip to content

Commit

Permalink
microblaze: Fix "kstack=" parsing
Browse files Browse the repository at this point in the history
The "kstack=" command line parameter is not parsed correctly.
All proper values are interpreted as zero.

Signed-off-by: Steven J. Magnani <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
smagnani authored and michalsimek committed Apr 1, 2010
1 parent 2eaa9cf commit 0c4ec16
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/microblaze/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ void trap_init(void)
__enable_hw_exceptions();
}

static int kstack_depth_to_print = 24;
static unsigned long kstack_depth_to_print = 24;

static int __init kstack_setup(char *s)
{
kstack_depth_to_print = strict_strtoul(s, 0, NULL);

return 1;
return !strict_strtoul(s, 0, &kstack_depth_to_print);
}
__setup("kstack=", kstack_setup);

Expand Down

0 comments on commit 0c4ec16

Please sign in to comment.