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.yog...@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 <em...@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() ...


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to