staging: speakup: Prefer pr_err instead of printk(KERN_ERR)
authorKeerthimai Janarthanan <keerthimaipb@gmail.com>
Tue, 18 Mar 2014 08:40:13 +0000 (14:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 18:13:37 +0000 (11:13 -0700)
Prefer pr_err instead of printk(KERN_ERR)

Signed-off-by: Keerthimai Janarthanan <keerthimaipb@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/serialio.c

index 4e18fb4053446382cc30e77bc7f7c08f03af92c0..c62d74c4790645fee1f5d9a24d8dad1f6db3d913 100644 (file)
@@ -40,7 +40,7 @@ const struct old_serial_port *spk_serial_init(int index)
                cval |= UART_LCR_EPAR;
        if (synth_request_region(ser->port, 8)) {
                /* try to take it back. */
-               printk(KERN_INFO "Ports not available, trying to steal them\n");
+               pr_info("Ports not available, trying to steal them\n");
                __release_region(&ioport_resource, ser->port, 8);
                err = synth_request_region(ser->port, 8);
                if (err) {
@@ -106,7 +106,7 @@ static void start_serial_interrupt(int irq)
                         "serial", (void *) synth_readbuf_handler);
 
        if (rv)
-               printk(KERN_ERR "Unable to request Speakup serial I R Q\n");
+               pr_err("Unable to request Speakup serial I R Q\n");
        /* Set MCR */
        outb(UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2,
                        speakup_info.port_tts + UART_MCR);