USB: usblcd: use pr_err()
authorJohan Hovold <johan@kernel.org>
Thu, 26 Sep 2019 09:12:28 +0000 (11:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 09:11:08 +0000 (11:11 +0200)
Replace the one remaining printk with pr_err().

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20190926091228.24634-10-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usblcd.c

index 732eb1f..61e9e98 100644 (file)
@@ -84,7 +84,7 @@ static int lcd_open(struct inode *inode, struct file *file)
 
        interface = usb_find_interface(&lcd_driver, subminor);
        if (!interface) {
-               printk(KERN_ERR "USBLCD: %s - error, can't find device for minor %d\n",
+               pr_err("USBLCD: %s - error, can't find device for minor %d\n",
                       __func__, subminor);
                return -ENODEV;
        }