lkml.org 
[lkml]   [2011]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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.


\
 
 \ /
  Last update: 2011-09-13 18:23    [W:0.068 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site