mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: yogesh <mr.yogesh@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Levente Kurusa <levex@linux.com>,
	rdunlap@infradead.org
Subject: Re: Subject: [PATCH v2 1/1] Add documentation for proper usage and order of preference of calls to print diagnostic messages.
Date: Tue, 04 Mar 2014 09:13:38 -0800	[thread overview]
Message-ID: <1393953218.20435.34.camel@joe-AO722> (raw)
In-Reply-To: <20140304170153.GA11780@yogesh-Dell-System-XPS-L502X>

On Tue, 2014-03-04 at 22:31 +0530, yogesh wrote:
> This patch adds documentation that clarifies the use of various
> diagnostic printing messages. It shows the preference of subsystem_dbg
> calls to dev_dbg (whenever possible), as the first preferred format of
> logging debug messages.
> Signed-off-by: Yogesh Chaudhari <mr.yogesh@gmail.com>

Just two small things for next time, not enough
for a resend, but please add a blank line between
the commit log and the Signed-off line

commit message lines wrapped at around 70 columns
and another line...

Signed-off-by: Your Name <email@address.tld>

and...

> diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
[]
> @@ -662,6 +662,23 @@ and driver, and are tagged with the right level:  dev_err(), dev_warn(),

> +Depending on your changes, the following order of precedence
> +applies to printing messages:
> +1. [subsystem]_dbg() is preferred when the subsystem has its own
> +diagnostic macros.
> +2. dev_dbg() is preferred when you have a generic struct device object.
> +3. pr_debug() should be used when 1 and 2 above are not applicable.
> +4. printk() should be avoided.

Another of my preferences would be to indent wrapped
lines when using numbered or bulleted lists.

1. [subsystem]_dbg is preferred when the subsystem has its own
   diagnostic macros or functions.
2. dev_dbg is ...
3. pr_debug ...
4. printk() ...



      reply	other threads:[~2014-03-04 17:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-04 17:01 yogesh
2014-03-04 17:13 ` Joe Perches [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=1393953218.20435.34.camel@joe-AO722 \
    --to=joe@perches.com \
    --cc=levex@linux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mr.yogesh@gmail.com \
    --cc=rdunlap@infradead.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

all inboxes | Powered by JetHome®