V4L/DVB (10522): em28xx-audio: replace printk with em28xx_errdev
authorAlexey Klimov <klimov.linux@gmail.com>
Sun, 8 Feb 2009 04:16:32 +0000 (01:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:44 +0000 (12:42 -0300)
Patch removes printk and place em28xx_errdev macros to provide
information about driver name to dmesg.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-audio.c

index 38436af..05d145f 100644 (file)
@@ -231,7 +231,7 @@ static int em28xx_cmd(struct em28xx *dev, int cmd, int arg)
                        dev->adev.capture_stream = STREAM_OFF;
                        em28xx_deinit_isoc_audio(dev);
                } else {
-                       printk(KERN_ERR "An underrun very likely occurred. "
+                       em28xx_errdev("An underrun very likely occurred. "
                                        "Ignoring it.\n");
                }
                return 0;