From: Laurent Pinchart Date: Sat, 1 Aug 2009 21:14:24 +0000 (-0300) Subject: V4L/DVB (12380): uvcvideo: Avoid flooding the kernel log with "unknown event type... X-Git-Tag: v2.6.31-rc7~40^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd0232c13419b7ce51e02942082ff6af231e0f84;p=platform%2Fkernel%2Flinux-3.10.git V4L/DVB (12380): uvcvideo: Avoid flooding the kernel log with "unknown event type" messages The iSight sends non-UVC status events through the interrupt endpoint. Those invalid events are reported to the kernel log, resulting in a log flood. Only log the events when the UVC_TRACE_STATUS flag is set. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/uvc/uvc_status.c b/drivers/media/video/uvc/uvc_status.c index f152a99..1ca6dff 100644 --- a/drivers/media/video/uvc/uvc_status.c +++ b/drivers/media/video/uvc/uvc_status.c @@ -145,8 +145,8 @@ static void uvc_status_complete(struct urb *urb) break; default: - uvc_printk(KERN_INFO, "unknown event type %u.\n", - dev->status[0]); + uvc_trace(UVC_TRACE_STATUS, "Unknown status event " + "type %u.\n", dev->status[0]); break; } }