]> git.baikalelectronics.ru Git - kernel.git/commit
drivers-core: make structured logging play nice with dynamic-debug
authorJim Cromie <jim.cromie@gmail.com>
Thu, 19 Jul 2012 19:46:21 +0000 (13:46 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 17:20:53 +0000 (10:20 -0700)
commitf0e274161439bcf9e3f0a754293173f900da1112
tree8667955bac67e38218234d3371ed227d6b27d859
parentdde762d5e7a1fb234d670e75ab8ffe3b4780e644
drivers-core: make structured logging play nice with dynamic-debug

commit f22c99f92234e1542b20bd5f5bfc2b97e6dcadae changed __dev_printk
in a way that broke dynamic-debug's ability to control the dynamic
prefix of dev_dbg(dev,..), but not dev_dbg(NULL,..) or pr_debug(..),
which is why it wasnt noticed sooner.

When dev==NULL, __dev_printk() just calls printk(), which just works.
But otherwise, it assumed that level was always a string like "<L>"
and just plucked out the 'L', ignoring the rest.  However,
dynamic_emit_prefix() adds "[tid] module:func:line:" to the string,
those additions all got lost.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Acked-by: Jason Baron <jbaron@redhat.com>
Cc: stable <stable@vger.kernel.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c