[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110913162023.GA23759@codeaurora.org>
Date: Tue, 13 Sep 2011 11:20:23 -0500
From: "Linas Vepstas (Code Aurora)" <linas@...eaurora.org>
To: linux-kernel@...r.kernel.org
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@...eaurora.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists