dev: Add dev_vprintk_emit and dev_printk_emit
commit05e4e5b87aab74f994acf9dd4bed4a8f1367cd09
authorJoe Perches <joe@perches.com>
Thu, 13 Sep 2012 03:13:37 +0000 (12 20:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 13:10:05 +0000 (17 06:10 -0700)
treee40c6ba66ea821556abbf73a71fa8b55ef73cb63
parentc2c5a7051c556036b7beb8f4a89eefdc91c3245b
dev: Add dev_vprintk_emit and dev_printk_emit

Add utility functions to consolidate the use of
create_syslog_header and vprintk_emit.

This allows conversion of logging functions that
call create_syslog_header and then call vprintk_emit
or printk_emit to the dev_ equivalents.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: David S. Miller <davem@davemloft.net>
Tested-by: Jim Cromie <jim.cromie@gmail.com>
Acked-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
include/linux/device.h