Skip to contentSkip to conversation

yavta: Fix usage documentation for --field option

PATCH In review Niklas Söderlund 2 participants 2 messages Apr 21, 2021 – May 22, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 yavta: Fix usage documentation for --field option

The --field option takes an argument selecting the field order. Update the usage text to reflect this.

---
* Changes since v1
- List all valid filed values.

---
 yavta.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
yavta.c +3 -1
index 4e5b62a96eb66f8d..1129ab245966384b 100644
@@ -2290,7 +2290,9 @@ static void usage(const char *argv0)
 	printf("    --enum-formats		Enumerate formats\n");
 	printf("    --enum-inputs		Enumerate inputs\n");
 	printf("    --fd                        Use a numeric file descriptor insted of a device\n");
-	printf("    --field			Interlaced format field order\n");
+	printf("    --field field		Set the format field order\n");
+	printf("\tValid values for field are none, top, bottom, interlaced, seq-tb, seq-bt\n");
+	printf("\talternate, interlaced-tb and interlaced-bt.\n");
 	printf("    --log-status		Log device status\n");
 	printf("    --no-query			Don't query capabilities on open\n");
 	printf("    --offset			User pointer buffer offset from page start\n");
Signature · 1 line
2.31.1
Reviewed-by on v2 1/1
#1 lore raw

Hi Niklas,

Thank you for the patch.

Quoted 16 lines · Niklas Söderlund

The --field option takes an argument selecting the field order. Update the usage text to reflect this.

---
* Changes since v1
- List all valid filed values.

---
 yavta.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
yavta.c +0 -0
index 4e5b62a96eb66f8d..1129ab245966384b 100644

yavta.c static void usage(const char *argv0) · line 2294

Quoted 6 lines
yavta.c +2 -1
@@ -2290,7 +2290,9 @@ static void usage(const char *argv0)
 	printf("    --enum-formats		Enumerate formats\n");
 	printf("    --enum-inputs		Enumerate inputs\n");
 	printf("    --fd                        Use a numeric file descriptor insted of a device\n");
-	printf("    --field			Interlaced format field order\n");
+	printf("    --field field		Set the format field order\n");
+	printf("\tValid values for field are none, top, bottom, interlaced, seq-tb, seq-bt\n");

Missing ',' after seq-bt.

yavta.c static void usage(const char *argv0) · line 2295

Quoted 1 line
yavta.c +1 -0
+	printf("\talternate, interlaced-tb and interlaced-bt.\n");

One may argue that it would be nice to iterate over the fields array, but that's likely overkill.

and applied with the added comma.

Quoted 3 lines
yavta.c +0 -0
 	printf("    --log-status		Log device status\n");
 	printf("    --no-query			Don't query capabilities on open\n");
 	printf("    --offset			User pointer buffer offset from page start\n");
Signature · 3 lines
Regards,

Laurent Pinchart