staging: pi433: replace printk calls with dev_dbg
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 19 Dec 2017 14:56:22 +0000 (15:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 15:05:54 +0000 (16:05 +0100)
Fixes checkpatch warning:

  WARNING: printk() should include KERN_<LEVEL> facility level

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c

index 264d798a1cf2588427dc58f4e8f833b6955b7b48..89c03601ec1f291e24666a0676528d7da6cbc20c 100644 (file)
@@ -718,7 +718,7 @@ pi433_tx_thread(void *data)
                        retval = wait_event_interruptible(device->fifo_wait_queue,
                                                          device->free_in_fifo > 0);
                        if (retval) {
-                               printk("ABORT\n");
+                               dev_dbg(device->dev, "ABORT\n");
                                goto abort;
                        }
                }
@@ -729,7 +729,7 @@ pi433_tx_thread(void *data)
                                         device->free_in_fifo == FIFO_SIZE ||
                                         kthread_should_stop());
                if (kthread_should_stop())
-                       printk("ABORT\n");
+                       dev_dbg(device->dev, "ABORT\n");
 
                /* STOP_TRANSMISSION */
                dev_dbg(device->dev, "thread: Packet sent. Set mode to stby.");