From: Andrew Morton <akpm@digeo.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: root@chaos.analogic.com, felipe_alfaro@linuxmail.org,
rmk@arm.linux.org.uk, paulkf@microgate.com,
dahinds@users.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: PCMCIA 2.5.X sleeping from illegal context
Date: Tue, 13 May 2003 16:33:23 -0700 [thread overview]
Message-ID: <20030513163323.516ad04b.akpm@digeo.com> (raw)
In-Reply-To: <1052833031.432.11.camel@dhcp22.swansea.linux.org.uk>
Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
>
> On Maw, 2003-05-13 at 00:36, Richard B. Johnson wrote:
> > Could somebody please change the error message? Although everybody
> > seems to want to be a lawyer, even lawyers don't make law. Certainly
> > Software Engineers don't. The correct word is 'invalid', not 'illegal'.
> > Yes, I know there is a 30-year history of the use of that word in
> > Unix, but it's wrong. Only governments make law.
>
> Much to my suprise you are right on this. The reference dictionary is
> quite explicit that "illegal" means prohibited by law. Since users will
> eventually see this message it perhaps does make sense to fix it
>
diff -puN kernel/sched.c~might-sleep-fix kernel/sched.c
--- 25/kernel/sched.c~might-sleep-fix Tue May 13 16:32:18 2003
+++ 25-akpm/kernel/sched.c Tue May 13 16:32:46 2003
@@ -2842,8 +2842,8 @@ void __might_sleep(char *file, int line)
if (time_before(jiffies, prev_jiffy + HZ))
return;
prev_jiffy = jiffies;
- printk(KERN_ERR "Debug: sleeping function called from illegal"
- " context at %s:%d\n", file, line);
+ printk(KERN_ERR "Debug: sleeping in immoral context "
+ "at %s:%d\n", file, line);
dump_stack();
}
#endif
_
next prev parent reply other threads:[~2003-05-13 23:25 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-12 21:35 PCMCIA 2.5.X sleeping from illegal context Paul Fulghum
2003-05-12 21:07 ` Alan Cox
2003-05-12 12:36 ` Paul Fulghum
2003-05-12 22:48 ` Russell King
2003-05-13 15:23 ` Paul Fulghum
2003-05-13 16:00 ` David Hinds
2003-05-12 22:31 ` Russell King
2003-05-12 23:16 ` Felipe Alfaro Solana
2003-05-12 23:36 ` Richard B. Johnson
2003-05-12 23:52 ` Paul Fulghum
2003-05-13 13:37 ` Alan Cox
2003-05-13 23:33 ` Andrew Morton [this message]
2003-05-14 13:25 ` Henning P. Schmiedehausen
2003-05-13 2:07 ` Thomas Molina
2003-05-13 0:36 ` Felipe Alfaro Solana
2003-05-12 23:11 ` Felipe Alfaro Solana
2003-05-12 22:06 ` David Hinds
2003-05-12 12:37 ` Paul Fulghum
2003-05-12 22:44 ` Andrew Morton
2003-05-12 23:10 ` David Hinds
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=20030513163323.516ad04b.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=dahinds@users.sourceforge.net \
--cc=felipe_alfaro@linuxmail.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulkf@microgate.com \
--cc=rmk@arm.linux.org.uk \
--cc=root@chaos.analogic.com \
/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 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.