[PATCH] Janitor: Typo in stack debug code

From: Linas Vepstas (Code Aurora)
Date: Tue Sep 13 2011 - 12:20:41 EST



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@xxxxxxxxxxxxxx>

---

===================================================================
--- 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/