This patch replaces the info statements with printk(KERN_INFO statements. This will cut down on the useless information which is showing up in the kernel messages log file.
Example:
Jan 1 23:00:24 www kernel: /usr/src/v4l-dvb-3beb62e206ef/linux/drivers/media/video/usbvision/usbvision-video.c: usbvision_probe: Hauppauge WinTv-USB FM Model 40211 Rev B123 found
Jan 1 23:00:24 www kernel: /usr/src/v4l-dvb-3beb62e206ef/linux/drivers/media/video/usbvision/usbvision-video.c: USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
Jan 1 23:00:24 www kernel: /usr/src/v4l-dvb-3beb62e206ef/linux/drivers/media/video/usbvision/usbvision-video.c: USBVision[0]: registered USBVision Radio device /dev/radio0 [v4l2]
Jan 1 23:00:24 www kernel: /usr/src/v4l-dvb-3beb62e206ef/linux/drivers/media/video/usbvision/usbvision-video.c: USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
to this...
Jan 7 12:43:12 www kernel: usbvision_probe: Hauppauge WinTv-USB FM Model 40211 Rev B123 found
Jan 7 12:43:12 www kernel: USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
Jan 7 12:43:12 www kernel: USBVision[0]: registered USBVision Radio device /dev/radio0 [v4l2]
Jan 7 12:43:12 www kernel: USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
Signed-off-by: Dwaine P. Garden <DwaineGarden@xxxxxxxxxx>
Example:
Jan 1 23:00:24 www kernel: /usr/src/v4l-dvb-3beb62e206ef/linux/drivers/media/video/usbvision/usbvision-video.c: usbvision_probe: Hauppauge WinTv-USB FM Model 40211 Rev B123 found
Jan 1 23:00:24 www kernel: /usr/src/v4l-dvb-3beb62e206ef/linux/drivers/media/video/usbvision/usbvision-video.c: USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
Jan 1 23:00:24 www kernel: /usr/src/v4l-dvb-3beb62e206ef/linux/drivers/media/video/usbvision/usbvision-video.c: USBVision[0]: registered USBVision Radio device /dev/radio0 [v4l2]
Jan 1 23:00:24 www kernel: /usr/src/v4l-dvb-3beb62e206ef/linux/drivers/media/video/usbvision/usbvision-video.c: USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
to this...
Jan 7 12:43:12 www kernel: usbvision_probe: Hauppauge WinTv-USB FM Model 40211 Rev B123 found
Jan 7 12:43:12 www kernel: USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
Jan 7 12:43:12 www kernel: USBVision[0]: registered USBVision Radio device /dev/radio0 [v4l2]
Jan 7 12:43:12 www kernel: USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
Signed-off-by: Dwaine P. Garden <DwaineGarden@xxxxxxxxxx>
diff -U 3 -H -d -r -N -- a/linux/drivers/media/video/usbvision/usbvision-video.c b/linux/drivers/media/video/usbvision/usbvision-video.c --- a/linux/drivers/media/video/usbvision/usbvision-video.c 2007-01-07 12:24:24.000000000 -0500 +++ b/linux/drivers/media/video/usbvision/usbvision-video.c 2007-01-07 12:50:35.000000000 -0500 @@ -519,7 +519,7 @@ up(&usbvision->lock); if (usbvision->remove_pending) { - info("%s: Final disconnect", __FUNCTION__); + printk(KERN_INFO "%s: Final disconnect\n", __FUNCTION__); usbvision_release(usbvision); } @@ -1368,7 +1368,7 @@ up(&usbvision->lock); if (usbvision->remove_pending) { - info("%s: Final disconnect", __FUNCTION__); + printk(KERN_INFO "%s: Final disconnect\n", __FUNCTION__); usbvision_release(usbvision); } @@ -1779,7 +1779,7 @@ if (video_register_device(usbvision->vdev, VFL_TYPE_GRABBER, video_nr)<0) { goto err_exit; } - info("USBVision[%d]: registered USBVision Video device /dev/video%d [v4l2]", usbvision->nr,usbvision->vdev->minor & 0x1f); + printk(KERN_INFO "USBVision[%d]: registered USBVision Video device /dev/video%d [v4l2]\n", usbvision->nr,usbvision->vdev->minor & 0x1f); // Radio Device: if (usbvision_device_data[usbvision->DevModel].Radio) { @@ -1791,7 +1791,7 @@ if (video_register_device(usbvision->rdev, VFL_TYPE_RADIO, radio_nr)<0) { goto err_exit; } - info("USBVision[%d]: registered USBVision Radio device /dev/radio%d [v4l2]", usbvision->nr, usbvision->rdev->minor & 0x1f); + printk(KERN_INFO "USBVision[%d]: registered USBVision Radio device /dev/radio%d [v4l2]\n", usbvision->nr, usbvision->rdev->minor & 0x1f); } // vbi Device: if (usbvision_device_data[usbvision->DevModel].vbi) { @@ -1802,7 +1802,7 @@ if (video_register_device(usbvision->vbi, VFL_TYPE_VBI, vbi_nr)<0) { goto err_exit; } - info("USBVision[%d]: registered USBVision VBI device /dev/vbi%d [v4l2] (Not Working Yet!)", usbvision->nr,usbvision->vbi->minor & 0x1f); + printk(KERN_INFO "USBVision[%d]: registered USBVision VBI device /dev/vbi%d [v4l2] (Not Working Yet!)\n", usbvision->nr,usbvision->vbi->minor & 0x1f); } // all done return 0; @@ -1970,7 +1970,7 @@ continue; } - info("%s: %s found", __FUNCTION__, usbvision_device_data[model].ModelString); + printk(KERN_INFO "%s: %s found\n", __FUNCTION__, usbvision_device_data[model].ModelString); break; } @@ -2130,7 +2130,7 @@ up(&usbvision->lock); if (usbvision->user) { - info("%s: In use, disconnect pending", __FUNCTION__); + printk(KERN_INFO "%s: In use, disconnect pending\n", __FUNCTION__); wake_up_interruptible(&usbvision->wait_frame); wake_up_interruptible(&usbvision->wait_stream); } @@ -2302,7 +2302,7 @@ errCode = usb_register(&usbvision_driver); if (errCode == 0) { - info(DRIVER_DESC " : " USBVISION_VERSION_STRING); + printk(KERN_INFO DRIVER_DESC " : " USBVISION_VERSION_STRING "\n"); PDEBUG(DBG_PROBE, "success"); } return errCode;
_______________________________________________ linux-dvb mailing list linux-dvb@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb