From: "J. Bruce Fields" <bfields@fieldses.org>
To: Horst von Brand <vonbrand@inf.utfsm.cl>
Cc: Valdis.Kletnieks@vt.edu, "Hugh Dickins" <hugh@veritas.com>,
"Randy.Dunlap" <rdunlap@xenotime.net>,
"Márcio Oliveira" <moliveira@latinsourcetech.com>,
linux-kernel@vger.kernel.org
Subject: Re: Tainted lsmod output
Date: Mon, 12 Sep 2005 17:36:04 -0400 [thread overview]
Message-ID: <20050912213604.GC8127@fieldses.org> (raw)
In-Reply-To: <200509122127.j8CLR3n7025719@laptop11.inf.utfsm.cl>
On Mon, Sep 12, 2005 at 05:27:03PM -0400, Horst von Brand wrote:
> Valdis.Kletnieks@vt.edu wrote:
> > Somebody had an automated log-parsing tool, and wanted to make sure there
> > were guaranteed at least 2 non-whitespace tokens on the line so they wouldn't
> > have to deal with parsing 'Tainted: \n'?
>
> That's a lame excuse for messing up the kernel and mistifying the heck out
> of users. Either "Tainted: <some gunk>" or "Not tainted" (or just nothing)?
That's precisely what is does. It's just that when there's taint other
than proprietary-module taint, it puts a "G" in that column instead of a
blank. Which is oddly inconsistent, but whatever.
--b.
const char *print_tainted(void)
{
static char buf[20];
if (tainted) {
snprintf(buf, sizeof(buf), "Tainted: %c%c%c%c%c%c",
tainted & TAINT_PROPRIETARY_MODULE ? 'P' : 'G',
tainted & TAINT_FORCED_MODULE ? 'F' : ' ',
tainted & TAINT_UNSAFE_SMP ? 'S' : ' ',
tainted & TAINT_FORCED_RMMOD ? 'R' : ' ',
tainted & TAINT_MACHINE_CHECK ? 'M' : ' ',
tainted & TAINT_BAD_PAGE ? 'B' : ' ');
}
else
snprintf(buf, sizeof(buf), "Not tainted");
return(buf);
}
next prev parent reply other threads:[~2005-09-12 21:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-12 18:21 Tainted lsmod output Márcio Oliveira
2005-09-12 18:30 ` Randy.Dunlap
2005-09-12 19:43 ` Hugh Dickins
2005-09-12 19:54 ` Randy.Dunlap
2005-09-12 19:58 ` Hugh Dickins
2005-09-12 20:03 ` Randy.Dunlap
2005-09-12 20:16 ` Valdis.Kletnieks
2005-09-12 21:27 ` Horst von Brand
2005-09-12 21:36 ` J. Bruce Fields [this message]
2005-09-13 1:21 ` Dave Jones
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=20050912213604.GC8127@fieldses.org \
--to=bfields@fieldses.org \
--cc=Valdis.Kletnieks@vt.edu \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=moliveira@latinsourcetech.com \
--cc=rdunlap@xenotime.net \
--cc=vonbrand@inf.utfsm.cl \
/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