From: Stephen Hemminger <shemminger@linux-foundation.org>
To: "Miguel Ojeda" <maxextreme@gmail.com>
Cc: "Rob Landley" <rob@landley.net>,
"Randy Dunlap" <randy.dunlap@oracle.com>,
"Vegard Nossum" <vegard.nossum@gmail.com>,
LKML <linux-kernel@vger.kernel.org>,
"Kyle Moffett" <mrmacman_g4@mac.com>,
"Michael Holzheu" <holzheu@linux.vnet.ibm.com>,
"Joe Perches" <joe@perches.com>,
"Dick Streefland" <dick.streefland@altium.nl>,
"Geert Uytterhoeven" <Geert.Uytterhoeven@sonycom.com>,
"Jesse Barnes" <jesse.barnes@intel.com>,
"Arnd Bergmann" <arnd@arndb.de>,
"Jan Engelhardt" <jengelh@computergmbh.de>,
"Emil Medve" <Emilian.Medve@freescale.com>,
"linux@horizon.com" <linux@horizon.com>
Subject: Re: [RFC][PATCH] New message-logging API (kprint)
Date: Fri, 5 Oct 2007 17:34:05 -0700 [thread overview]
Message-ID: <20071005173405.7a28bc73@freepuppy.rosehill> (raw)
In-Reply-To: <653402b90710051601x347924d3j34b5ec740c39e81c@mail.gmail.com>
On Sat, 6 Oct 2007 01:01:10 +0200
"Miguel Ojeda" <maxextreme@gmail.com> wrote:
> On 10/5/07, Rob Landley <rob@landley.net> wrote:
> > On Friday 05 October 2007 2:01:08 am Miguel Ojeda wrote:
> > >
> > > I think we all are trying to give ideas to improve the current logging API.
> > >
> > > If something works, it's great; but it doesn't mean that it can't be
> > > improved, right?
> >
> > I'm all for improving the kernel, but my definition of "improved" does not
> > include every possible change. I balance "smaller and simpler" with "more
> > features". Complexity is a cost, we should get something in return.
> >
> > Making the same functionality simpler makes it "cheaper" from a development
> > standpoint. Smaller and simpler means less overhead, less to understand,
> > less to go wrong. It's also attractive to me personally, because I am a Bear
> > of Very Little Brain and between the dozen or so projects I try to follow, I
> > have trouble fitting all the details in my head when they're tricky or they
> > change ever time I look at them. (Especially when I get distracted from one
> > of those projects for 3-6 months and come back to find it changed.)
>
> I fully agree. However, I just gave away some ideas that I believe
> they can make printk() easier and more understandable than it is right
> now (for example, standardizing kprint_[registered,detected,...]
> messages is something that I think it can simplify everyday use of
> messages, both to people who has to code it, review/search the code
> and people that reads the kernel output).
>
> >
> > I recognize constantly having to learn new things as part of the cost of
> > living, and making things more complicated happens as you add features. But
> > when somebody reinvents the wheel it's really nice to have clearly spelled
> > out the advantages of the new wheel vs the old one. It's nice for there to
> > _be_ clear advantages, offsetting the increased complexity cost.
>
> I got your point, and I agree. However, I also see the possibilities
> that a change of the logging API can bring: If someday it gets
> improved, maybe such day should be improved as far as possible. This
> kind of stuff that affect so many things are not going to change for
> long periods of time, as you said.
>
> Still, I know some kind of changes can be really complex and maybe are
> unproductive. I think the point is to get a middle point between new
> complexity vs. new features.
The beauty of printk is it's current simplicity. And even with that developers
get it wrong. The changes seem like added complexity with little real gain.
Plus none of the changes address the issue of getting better information.
The kernel is already so noisy that most distributions boot with the quiet
flag to shut it up. So less messages is probably better!
> >
> > In this case, upon asking, the only potential advantage here seems to be "now
> > we can translate dmesg output into Chinese more easily", which is something
>
> Well, other improvements suggested are not just about internationalization.
>
> > you could already do in userspace already via regular expressions in a
> > translating dmesg, and which has the primary effect of making the resulting
> > dmesg useless to report to lkml without really improving the amount of sense
> > it makes to nontechnical end users (who really aren't the target of the
> > english dmesg output, either). The "linux developer who can't read english"
> > niche is inherently somewhat problematic, as has been discussed here before.
> >
>
> I didn't talk about internationalization (in fact, I think it is going
> to be pretty complex to get it right and, worse, to get it up-to-date
> in each release without error in translations)
>
> > The cost of this patch is making the kernel bigger, the in-kernel printk api
> > more complicated, and the userspace dmesg noticeably more complex just to
> > implement the same functionality against the new API. Documenting the
> > changes is nice, but doesn't reduce this increase in complexity.
> >
> > The original idea (selectively compile out printk() instances based on log
> > level to conserve space) is explicitly not addressed by this patch, and in
> > fact this patch might actually make it harder to implement (by complicating
> > the code).
> >
> > *shrug* That doesn't mean my objections are important to anyone else, just
> > that I don't personally see any reason to be enthusiastic about this patch.
>
> Take a look to other suggested changes, maybe you like some of them
> and you will have found a reason to be enthusiastic :)
>
> >
> > Rob
>
--
Stephen Hemminger <shemminger@linux-foundation.org>
next prev parent reply other threads:[~2007-10-06 0:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-04 20:04 Vegard Nossum
2007-10-04 20:17 ` Randy Dunlap
2007-10-05 1:59 ` Rob Landley
2007-10-05 7:01 ` Miguel Ojeda
2007-10-05 16:26 ` Rob Landley
2007-10-05 23:01 ` Miguel Ojeda
2007-10-06 0:34 ` Stephen Hemminger [this message]
2007-10-07 10:20 ` Miguel Ojeda
2007-10-07 21:56 ` Rob Landley
2007-10-07 22:32 ` Randy Dunlap
2007-10-06 6:10 ` Vegard Nossum
2007-10-07 21:50 ` Rob Landley
2007-10-08 15:25 ` Stephen Hemminger
2007-10-08 15:33 ` Vegard Nossum
2007-10-08 15:42 ` Stephen Hemminger
2007-10-05 13:13 ` Vegard Nossum
2007-10-05 16:05 ` Rob Landley
2007-10-05 17:01 ` Alan Cox
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=20071005173405.7a28bc73@freepuppy.rosehill \
--to=shemminger@linux-foundation.org \
--cc=Emilian.Medve@freescale.com \
--cc=Geert.Uytterhoeven@sonycom.com \
--cc=arnd@arndb.de \
--cc=dick.streefland@altium.nl \
--cc=holzheu@linux.vnet.ibm.com \
--cc=jengelh@computergmbh.de \
--cc=jesse.barnes@intel.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@horizon.com \
--cc=maxextreme@gmail.com \
--cc=mrmacman_g4@mac.com \
--cc=randy.dunlap@oracle.com \
--cc=rob@landley.net \
--cc=vegard.nossum@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome