From: "Linas Vepstas (Code Aurora)" <linas@codeaurora.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Janitor: Typo in stack debug code
Date: Tue, 13 Sep 2011 11:20:23 -0500 [thread overview]
Message-ID: <20110913162023.GA23759@codeaurora.org> (raw)
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.
next reply other threads:[~2011-09-13 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-13 16:20 Linas Vepstas (Code Aurora) [this message]
2011-09-13 16:31 ` [PATCH] Janitor: Typo in stack debug code Eric Dumazet
2011-09-13 16:39 ` Linas Vepstas (Code Aurora)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110913162023.GA23759@codeaurora.org \
--to=linas@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox