Skip to content

Commit

Permalink
V4L/DVB (12380): uvcvideo: Avoid flooding the kernel log with "unknow…
Browse files Browse the repository at this point in the history
…n 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 <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed Aug 13, 2009
1 parent d79cd83 commit bd0232c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/uvc/uvc_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit bd0232c

Please sign in to comment.