diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-05-04 12:39:17 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-05-04 13:07:54 +0200 |
commit | 360037c0719c4d37a57f3fc517aac32c43bdd993 (patch) | |
tree | daf4e13877b45c33313c8266ccd478ed55c76caa | |
parent | 44b4f2484ebb3014868883273a4dd6f6555c401d (diff) |
Print class controls as headers
This improves the controls list readability.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | yavta.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |