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 <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Laurent Pinchart 2009-08-01 18:14:24 -03:00 коммит произвёл Mauro Carvalho Chehab
Родитель d79cd8393a
Коммит bd0232c134
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}
}