Messages in this thread Patch in this message | | | Date | Tue, 13 Sep 2011 11:20:23 -0500 | From | "Linas Vepstas (Code Aurora)" <> | Subject | [PATCH] Janitor: Typo in stack debug code |
| |
In the debug routine check_stack_usage(), free stack space is counted in units of (unsigned long), not bytes. Make this clear when printing.
It seems easiest to just change the message, instead of multiplying by sizeof(unsigned long).
Signed-off-by: Linas Vepstas <linas@codeaurora.org>
---
=================================================================== --- a/kernel/exit.c +++ b/kernel/exit.c @@ -888,7 +888,7 @@ static void check_stack_usage(void) spin_lock(&low_water_lock); if (free < lowest_to_date) { - printk(KERN_WARNING "%s used greatest stack depth: %lu bytes " + printk(KERN_WARNING "%s used greatest stack depth: %lu words " "left\n", current->comm, free); lowest_to_date = free;
-- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
| |