lkml.org 
[lkml]   [2010]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] microblaze: Fix "kstack=" parsing
Date
The "kstack=" command line parameter is not parsed correctly.
All proper values are interpreted as zero.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
---
diff -uprN a/arch/microblaze/kernel/traps.c b/arch/microblaze/kernel/traps.c
--- a/arch/microblaze/kernel/traps.c 2010-02-24 14:12:01.000000000 -0600
+++ b/arch/microblaze/kernel/traps.c 2010-02-24 14:48:47.000000000 -0600
@@ -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);




\
 
 \ /
  Last update: 2010-02-24 22:05    [W:0.022 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site