Skip to contentSkip to conversation

v4l-ioctl: Fix typo on v4l_print_frmsizeenum

PATCH In review Ricardo Ribalda Delgado 3 participants 3 messages Sep 13, 2017 – Sep 15, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH v2 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

v2: Suggested by Laurent Pinchart <[email protected]> -Fix indentation

 drivers/media/v4l2-core/v4l2-ioctl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/media/v4l2-core/v4l2-ioctl.c +3 -3
index b60a6b0841d1..0292f327467d 100644
@@ -730,9 +730,9 @@ 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
Acked-by on v2 1/1
#1 lore raw
Quoted 3 lines · Ricardo Ribalda Delgado

max_width and max_height are swap with step_width and step_height.

Quoted 30 lines

---

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

v2: Suggested by Laurent Pinchart <[email protected]>

(quoted diff) +0 -1
-Fix indentation
 
 drivers/media/v4l2-core/v4l2-ioctl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/media/v4l2-core/v4l2-ioctl.c +3 -3
index b60a6b0841d1..0292f327467d 100644
@@ -730,9 +730,9 @@ 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 · 2 lines
Sakari Ailus
e-mail: [email protected]
Reviewed-by on v2 1/1
#2 lore raw
In reply to Ricardo Ribalda Delgado

Hi Ricardo,

Thank you for the patch.

Quoted 3 lines · On Wednesday, 13 September 2017 10:35:52 EEST Ricardo Ribalda Delgado wrote:

max_width and max_height are swap with step_width and step_height.

Quoted 31 lines

---

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

v2: Suggested by Laurent Pinchart <[email protected]>

(quoted diff) +0 -1
-Fix indentation
 
 drivers/media/v4l2-core/v4l2-ioctl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/drivers/media/v4l2-core/v4l2-ioctl.c index b60a6b0841d1..0292f327467d 100644

drivers/media/v4l2-core/v4l2-ioctl.c +3 -3
@@ -730,9 +730,9 @@ 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 · 3 lines
Regards,

Laurent Pinchart