Skip to content

Commit 7309f3e

Browse files
xndcnmchehab
authored andcommitted
media: uvcvideo: Use uvc_query_name in uvc_get_video_ctrl
uvc_query_name was introduced to print query name in uvc_query_ctrl. So we can also use it in uvc_get_video_ctrl. Signed-off-by: Xiong Nandi <[email protected]> Reviewed-by: Ricardo Ribalda <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 060950f commit 7309f3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/media/usb/uvc/uvc_video.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,9 @@ static int uvc_get_video_ctrl(struct uvc_streaming *stream,
322322
goto out;
323323
} else if (ret != size) {
324324
dev_err(&stream->intf->dev,
325-
"Failed to query (%u) UVC %s control : %d (exp. %u).\n",
326-
query, probe ? "probe" : "commit", ret, size);
325+
"Failed to query (%s) UVC %s control : %d (exp. %u).\n",
326+
uvc_query_name(query), probe ? "probe" : "commit",
327+
ret, size);
327328
ret = (ret == -EPROTO) ? -EPROTO : -EIO;
328329
goto out;
329330
}

0 commit comments

Comments
 (0)