]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: uvcvideo: Replace dev_dbg() with uvc_dbg()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 16 Sep 2025 16:10:55 +0000 (19:10 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 5 Jan 2026 11:21:21 +0000 (12:21 +0100)
The uvcvideo driver uses a uvc_dbg() macro that supports enabling debug
message categories selectively, and prints a KERN_DEBUG message. The
macro is used through the driver, but one direct dev_dbg() call creeped
in. Replace it with uvc_dbg().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/usb/uvc/uvc_ctrl.c

index 2905505c240c060e5034ea12d33b59d5702f2e1f..d58bd888f0bf6588197df305ad3c68ba471a3b86 100644 (file)
@@ -2929,8 +2929,7 @@ int uvc_ctrl_restore_values(struct uvc_device *dev)
                        if (!ctrl->initialized || !ctrl->modified ||
                            (ctrl->info.flags & UVC_CTRL_FLAG_RESTORE) == 0)
                                continue;
-                       dev_dbg(&dev->intf->dev,
-                               "restoring control %pUl/%u/%u\n",
+                       uvc_dbg(dev, CONTROL, "restoring control %pUl/%u/%u\n",
                                ctrl->info.entity, ctrl->info.index,
                                ctrl->info.selector);
                        ctrl->dirty = 1;