v4l-ioctl: Fix typo on v4l_print_frmsizeenum
PATCH 1/1 v4l-ioctl: Fix typo on v4l_print_frmsizeenum
max_width and max_height are swap with step_width and step_height.
---
Since that this bug has been here for ever. I do not know if we should notify stable or not
I have also cut the lines to respect the 80 char limit
drivers/media/v4l2-core/v4l2-ioctl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/media/v4l2-core/v4l2-ioctl.c +6 -3
@@ -730,9 +730,12 @@ static void v4l_print_frmsizeenum(const void *arg, bool write_only)break ;case V4L2_FRMSIZE_TYPE_STEPWISE :pr_cont (", min=%ux%u, max=%ux%u, step=%ux%u\n" , - p->stepwise.min_width, p->stepwise.min_height, - p->stepwise.step_width, p->stepwise.step_height, - p->stepwise.max_width, p->stepwise.max_height); + p->stepwise.min_width, + p->stepwise.min_height, + p->stepwise.max_width, + p->stepwise.max_height, + p->stepwise.step_width, + p->stepwise.step_height);break ;case V4L2_FRMSIZE_TYPE_CONTINUOUS :/* fall through */
Signature · 1 line
2.14.1
Hi Ricardo,
Thank you for the patch.
Quoted 21 lines · On Friday, 8 September 2017 18:47:10 EEST Ricardo Ribalda Delgado wrote:
max_widthandmax_heightare swap withstep_widthandstep_height.Signed-off-by Ricardo Ribalda Delgado <[email protected]>---
Since that this bug has been here for ever. I do not know if we should notify stable or not
I have also cut the lines to respect the 80 char limit
drivers/media/v4l2-core/v4l2-ioctl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/media/v4l2-core/v4l2-ioctl.cindexb60a6b0841d1..79614992ee21100644drivers/media/v4l2-core/v4l2-ioctl.c +0
-0@@ -730,9 +730,12 @@ static void v4l_print_frmsizeenum(const void *arg, bool write_only) break;case V4L2_FRMSIZE_TYPE_STEPWISE :
drivers/media/v4l2-core/v4l2-ioctl.c static void v4l_print_frmsizeenum(const void *arg, bool · line 738
Quoted 10 lines
drivers/media/v4l2-core/v4l2-ioctl.c +6
-3pr_cont (", min=%ux%u, max=%ux%u, step=%ux%u\n" , - p->stepwise.min_width, p->stepwise.min_height, - p->stepwise.step_width, p->stepwise.step_height, - p->stepwise.max_width, p->stepwise.max_height); + p->stepwise.min_width, + p->stepwise.min_height, + p->stepwise.max_width, + p->stepwise.max_height, + p->stepwise.step_width, + p->stepwise.step_height);
If you fix the indentation as well (aligning p-> right after the '(') you could keep two arguments per line :-)
Quoted 3 lines
drivers/media/v4l2-core/v4l2-ioctl.c +0
-0break ;case V4L2_FRMSIZE_TYPE_CONTINUOUS :/* fall through */
Signature · 3 lines
Regards, Laurent Pinchart