public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@suse.de>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: Andrew Morton <akpm@osdl.org>,
	jesper.juhl@gmail.com, tilman@imap.cc, rdunlap@xenotime.net,
	linux-usb-devel@lists.sourceforge.net, hjlipp@web.de,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] reduce syslog clutter (take 2)
Date: Thu, 9 Mar 2006 14:42:53 -0800	[thread overview]
Message-ID: <20060309224253.GA18899@suse.de> (raw)
In-Reply-To: <20060309131847.44e1ab79.zaitcev@redhat.com>

On Thu, Mar 09, 2006 at 01:18:47PM -0800, Pete Zaitcev wrote:
> On Thu, 9 Mar 2006 13:03:27 -0800, Andrew Morton <akpm@osdl.org> wrote:
> > "Jesper Juhl" <jesper.juhl@gmail.com> wrote:
> > >
> > > > Feb 21 00:12:13 gx110 kernel: gigaset: ISDN_CMD_SETL3: invalid protocol 42
> > >  >
> > >  > do not provide any useful information for that clientele. They just push
> > > 
> > >  The filename may not be useful to the user, but the instant the user decides to
> > >  submit a bugreport to LKML or elsewhere it becomes useful.
> > 
> > But OTOH, there's a difference between messages-to-developers (usually "the
> > code went wrong") and messages-to-users (hopefully usually "the hardware
> > went wrong" or "you went wrong").
> 
> Symbol names are generally unique. As a USB stack developer, I never saw
> the file name being useful for anything in the error message, let alone
> the full path! Always hated them, but never bothered to break spears
> over the issue. We have better things to do. I just quietly remove
> debugging printouts from the code I touch.

There's a bit of history here.  The dbg(), err(), info() macros came
from the USB core, back in 2.2 days.  Then the whole path of the file
was not part of __FILE__, but only the single .c file.

With 2.5, __FILE__ changed as part of the build process changes, and we
added dev_dbg(), dev_info(), and dev_err(), which are a _much_ better
way to output information from a driver.  It provides the exact driver
and device that is being talked about, and not just a file.

So, ideally I'd like to get rid of the USB macros completly, and use the
dev_* forms instead.  But there are a few places in the USB code that do
not have a valid device and so they can't be dropped entirely.

Either way, I don't think we need to be making them "prettier" at this
point in time, but fixing the real problem of using them in the first
place...

I'll drop this patch for now, and only take the part that adds the new
dev_* macro.  Is that ok for everyone?

And if anyone wants to notify the kernel-janitors that this would be a
good thing to do for the USB subsytem, feel free, I'll gladly accept
those patches.

thanks,

greg k-h

      reply	other threads:[~2006-03-09 22:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-08 22:54 [PATCH] reduce syslog clutter (take 2) Tilman Schmidt
2006-03-09  5:47 ` Randy.Dunlap
2006-03-09 10:15   ` Tilman Schmidt
2006-03-09 11:02 ` Andrew Morton
2006-03-09 16:34   ` Randy.Dunlap
2006-03-09 18:43     ` Tilman Schmidt
     [not found]       ` <9a8748490603091058l75aacacsfc5fdba3981fb074@mail.gmail.com>
2006-03-09 19:17         ` Tilman Schmidt
2006-03-09 21:03         ` Andrew Morton
2006-03-09 21:18           ` Pete Zaitcev
2006-03-09 22:42             ` Greg KH [this message]

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=20060309224253.GA18899@suse.de \
    --to=gregkh@suse.de \
    --cc=akpm@osdl.org \
    --cc=hjlipp@web.de \
    --cc=jesper.juhl@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=rdunlap@xenotime.net \
    --cc=tilman@imap.cc \
    --cc=zaitcev@redhat.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