All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Janitor: Typo in stack debug code
@ 2011-09-13 16:20 Linas Vepstas (Code Aurora)
  2011-09-13 16:31 ` Eric Dumazet
  0 siblings, 1 reply; 3+ messages in thread
From: Linas Vepstas (Code Aurora) @ 2011-09-13 16:20 UTC (permalink / raw)
  To: linux-kernel


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-13 16:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-13 16:20 [PATCH] Janitor: Typo in stack debug code Linas Vepstas (Code Aurora)
2011-09-13 16:31 ` Eric Dumazet
2011-09-13 16:39   ` Linas Vepstas (Code Aurora)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.