]> git.karo-electronics.de Git - karo-tx-linux.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>
Sun, 26 Aug 2012 02:31:43 +0000 (19:31 -0700)
commit10eac236981c501f74682f122037021acd6a452b
treeeb2b76ebf243e1602714e1b6ca43fe80af159001
parentc473b3fed228da45c7323f45e8e7f00b345212b9
drivers-core: make structured logging play nice with dynamic-debug

commit af7f2158fdee9d7f55b793b09f8170a3391f889a upstream.

commit c4e00daaa96d3a0786f1f4fe6456281c60ef9a16 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: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c