aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-12-10 18:50:15 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-10 20:41:11 -0500
commita39d4a857d4bb0a62d6655c0d69f7387fe1ad160 (patch)
treea10a09dd5750a654992d9cd72e940a7c8d0f707a /lib/dynamic_debug.c
parentf80e696854c95725cf7faf9776e02f00600780d3 (diff)
printk: add and use LOGLEVEL_<level> defines for KERN_<LEVEL> equivalents
Use #defines instead of magic values. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jason Baron <jbaron@akamai.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r--lib/dynamic_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index dfba05521748..527799d44476 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -576,7 +576,7 @@ void __dynamic_dev_dbg(struct _ddebug *descriptor,
576 } else { 576 } else {
577 char buf[PREFIX_SIZE]; 577 char buf[PREFIX_SIZE];
578 578
579 dev_printk_emit(7, dev, "%s%s %s: %pV", 579 dev_printk_emit(LOGLEVEL_DEBUG, dev, "%s%s %s: %pV",
580 dynamic_emit_prefix(descriptor, buf), 580 dynamic_emit_prefix(descriptor, buf),
581 dev_driver_string(dev), dev_name(dev), 581 dev_driver_string(dev), dev_name(dev),
582 &vaf); 582 &vaf);
@@ -605,7 +605,7 @@ void __dynamic_netdev_dbg(struct _ddebug *descriptor,
605 if (dev && dev->dev.parent) { 605 if (dev && dev->dev.parent) {
606 char buf[PREFIX_SIZE]; 606 char buf[PREFIX_SIZE];
607 607
608 dev_printk_emit(7, dev->dev.parent, 608 dev_printk_emit(LOGLEVEL_DEBUG, dev->dev.parent,
609 "%s%s %s %s%s: %pV", 609 "%s%s %s %s%s: %pV",
610 dynamic_emit_prefix(descriptor, buf), 610 dynamic_emit_prefix(descriptor, buf),
611 dev_driver_string(dev->dev.parent), 611 dev_driver_string(dev->dev.parent),