OSDN Git Service

media: uvcvideo: Don't spam the log in uvc_ctrl_restore_values()
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 18 Jun 2021 12:29:21 +0000 (14:29 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:48 +0000 (10:07 +0200)
Don't report the restored controls with dev_info, use dev_dbg instead.
This prevents a lot of noise in the kernel log.

Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/uvc/uvc_ctrl.c

index dd6ebcc..30bfe90 100644 (file)
@@ -2127,10 +2127,10 @@ int uvc_ctrl_restore_values(struct uvc_device *dev)
                        if (!ctrl->initialized || !ctrl->modified ||
                            (ctrl->info.flags & UVC_CTRL_FLAG_RESTORE) == 0)
                                continue;
-                       dev_info(&dev->udev->dev,
-                                "restoring control %pUl/%u/%u\n",
-                                ctrl->info.entity, ctrl->info.index,
-                                ctrl->info.selector);
+                       dev_dbg(&dev->udev->dev,
+                               "restoring control %pUl/%u/%u\n",
+                               ctrl->info.entity, ctrl->info.index,
+                               ctrl->info.selector);
                        ctrl->dirty = 1;
                }