parport: Convert printk(KERN_<LEVEL> to pr_<level>(
Use the more common kernel style. Miscellanea: o Coalesce formats o Realign arguments Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Link: https://lore.kernel.org/r/20200403134325.11523-2-sudipm.mukherjee@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
d98ce9fef7
commit
decf26f6ec
@@ -319,7 +319,7 @@ int parport_negotiate (struct parport *port, int mode)
|
||||
#ifndef CONFIG_PARPORT_1284
|
||||
if (mode == IEEE1284_MODE_COMPAT)
|
||||
return 0;
|
||||
printk (KERN_ERR "parport: IEEE1284 not supported in this kernel\n");
|
||||
pr_err("parport: IEEE1284 not supported in this kernel\n");
|
||||
return -1;
|
||||
#else
|
||||
int m = mode & ~IEEE1284_ADDR;
|
||||
@@ -674,7 +674,7 @@ ssize_t parport_write (struct parport *port, const void *buffer, size_t len)
|
||||
ssize_t parport_read (struct parport *port, void *buffer, size_t len)
|
||||
{
|
||||
#ifndef CONFIG_PARPORT_1284
|
||||
printk (KERN_ERR "parport: IEEE1284 not supported in this kernel\n");
|
||||
pr_err("parport: IEEE1284 not supported in this kernel\n");
|
||||
return -ENODEV;
|
||||
#else
|
||||
int mode = port->physport->ieee1284.mode;
|
||||
|
Reference in New Issue
Block a user