mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
f80e696854
commit
a39d4a857d
4 changed files with 29 additions and 18 deletions
|
@ -576,7 +576,7 @@ void __dynamic_dev_dbg(struct _ddebug *descriptor,
|
|||
} else {
|
||||
char buf[PREFIX_SIZE];
|
||||
|
||||
dev_printk_emit(7, dev, "%s%s %s: %pV",
|
||||
dev_printk_emit(LOGLEVEL_DEBUG, dev, "%s%s %s: %pV",
|
||||
dynamic_emit_prefix(descriptor, buf),
|
||||
dev_driver_string(dev), dev_name(dev),
|
||||
&vaf);
|
||||
|
@ -605,7 +605,7 @@ void __dynamic_netdev_dbg(struct _ddebug *descriptor,
|
|||
if (dev && dev->dev.parent) {
|
||||
char buf[PREFIX_SIZE];
|
||||
|
||||
dev_printk_emit(7, dev->dev.parent,
|
||||
dev_printk_emit(LOGLEVEL_DEBUG, dev->dev.parent,
|
||||
"%s%s %s %s%s: %pV",
|
||||
dynamic_emit_prefix(descriptor, buf),
|
||||
dev_driver_string(dev->dev.parent),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue