summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yavta.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/yavta.c b/yavta.c
index b1a17de..a5ad605 100644
--- a/yavta.c
+++ b/yavta.c
@@ -488,7 +488,12 @@ static void video_list_controls(struct device *dev)
else
sprintf(value, "%d", ctrl.value);
- printf("control 0x%08x %s min %d max %d step %d default %d current %s.\n",
+ if (query.type == V4L2_CTRL_TYPE_CTRL_CLASS) {
+ printf("--- %s (class 0x%08x) ---\n", query.name, query.id);
+ continue;
+ }
+
+ printf("control 0x%08x `%s' min %d max %d step %d default %d current %s.\n",
query.id, query.name, query.minimum, query.maximum,
query.step, query.default_value, value);