Skip to contentSkip to conversation

v4l-ioctl: Fix typo on v4l_print_frmsizeenum

PATCH Superseded Ricardo Ribalda Delgado 2 participants 2 messages Sep 8, 2017 – Sep 13, 2017 Media (V4L/DVB)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index b60a6b0841d1..79614992ee21 100644
@@ -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
#1 lore raw

Hi Ricardo,

Thank you for the patch.

Quoted 21 lines · On Friday, 8 September 2017 18:47:10 EEST Ricardo Ribalda Delgado wrote:

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(-)
(quoted diff) +0 -0

b/drivers/media/v4l2-core/v4l2-ioctl.c index b60a6b0841d1..79614992ee21 100644

drivers/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 -3
 		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);

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 -0
 		break;
 	case V4L2_FRMSIZE_TYPE_CONTINUOUS:
 		/* fall through */
Signature · 3 lines
Regards,

Laurent Pinchart