linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: [PATCH] pci: convert dev_printk(KERN_DEBUG...) to dev_dbg(...)
Date: Wed, 21 May 2014 17:21:50 +0300	[thread overview]
Message-ID: <1400682110.28000.22.camel@smile.fi.intel.com> (raw)
In-Reply-To: <CAErSpo4=qu6+oYMngEuc+Pr5nNWw4K2PFcsa20g8-eYwSbHt+w@mail.gmail.com>

On Tue, 2014-05-20 at 10:44 -0600, Bjorn Helgaas wrote:
> On Tue, May 20, 2014 at 9:29 AM, Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > This patch does the conversion of all entries of dev_printk() calls to more
> > shorter form.
> 
> dev_dbg() is not a direct replacement for dev_printk(KERN_DEBUG).

I offten forget about this fact. Thanks for reminding.

> Output from the latter always appears in dmesg, while the former
> depends on CONFIG_DEBUG, CONFIG_DYNAMIC_DEBUG, etc.
> 
> It may be appropriate to change some of these, but we need to look at
> each case to see whether it's OK for the output to be optional.  I
> want most of the resource management stuff to always be there, because
> we have frequent problems with it, and I don't want to have to ask
> folks to build special kernels or boot with special options to get the
> output we need to debug them.  Maybe that means some of these should
> be KERN_INFO (and use dev_info()) rather than KERN_DEBUG.

That sounds convenient. I prefer to see clearly info messages and debug
messages.

> The changelog should mention the change in behavior between
> dev_printk(KERN_DEBUG) and dev_dbg(), and it should include an example
> of what users need to do to enable the output they always used to get.
>  I looked at Documentation/dynamic-debug-howto.txt, and it is, well,
> let's just say it looks very expressive and flexible, but I wouldn't
> expect a random user to figure out what to do.

I would do this if we agree what the changes should be done: my version,
or someone who has experience in PCI  (like you?) could go through all
those messages and sort out which are debug and which are info.


-- 
Andy Shevchenko <andriy.shevchenko@intel.com>
Intel Finland Oy


      reply	other threads:[~2014-05-21 14:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-20 15:29 [PATCH] pci: convert dev_printk(KERN_DEBUG...) to dev_dbg(...) Andy Shevchenko
2014-05-20 16:44 ` Bjorn Helgaas
2014-05-21 14:21   ` Andy Shevchenko [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=1400682110.28000.22.camel@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=bhelgaas@google.com \
    --cc=linux-pci@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;
as well as URLs for NNTP newsgroup(s).