summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@skynet.be>2009-08-01 23:14:24 +0200
committerLaurent Pinchart <laurent.pinchart@skynet.be>2009-08-01 23:14:24 +0200
commitbe7e7366b6e627b24db77147c07f9a3deb5f3933 (patch)
treeb94f9de7db4b309e1b4cc7b0d3a13c935b4a205a /linux/drivers/media/video
parentc5bf599bcaa4cba04f76ae9edce2d9766a9602fd (diff)
downloadmediapointer-dvb-s2-be7e7366b6e627b24db77147c07f9a3deb5f3933.tar.gz
mediapointer-dvb-s2-be7e7366b6e627b24db77147c07f9a3deb5f3933.tar.bz2
uvcvideo: Avoid flooding the kernel log with "unknown event type" messages
From: Laurent Pinchart <laurent.pinchart@skynet.be> 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. Priority: high Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/uvc/uvc_status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/uvc/uvc_status.c b/linux/drivers/media/video/uvc/uvc_status.c
index b05df63b4..48614d39c 100644
--- a/linux/drivers/media/video/uvc/uvc_status.c
+++ b/linux/drivers/media/video/uvc/uvc_status.c
@@ -157,8 +157,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;
}
}