staging/comedi: Use dev_ printks in drivers/comedi_fc.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Sat, 3 Nov 2012 13:40:13 +0000 (22:40 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 19:16:02 +0000 (11:16 -0800)
fixed below checkpatch warning.
- WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(...  to printk(KERN_WARNING ...

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/comedi_fc.c

index 63be619..8372829 100644 (file)
@@ -53,7 +53,7 @@ unsigned int cfc_write_array_to_buffer(struct comedi_subdevice *subd,
 
        retval = comedi_buf_write_alloc(async, num_bytes);
        if (retval != num_bytes) {
-               printk(KERN_WARNING "comedi: buffer overrun\n");
+               dev_warn(subd->device->class_dev, "comedi: buffer overrun\n");
                async->events |= COMEDI_CB_OVERFLOW;
                return 0;
        }