]> granicus.if.org Git - strace/commit
v4l2: improve control ID printing
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 19 Aug 2018 18:17:13 +0000 (20:17 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 5 Aug 2019 22:48:31 +0000 (22:48 +0000)
commite550b99ad66cb1901bbca9433ea36cc665a8cfd6
treee6241238c49b05064e66a0aa9a9e34a8a5060377
parent206059a9ac916e0b7d4a920f4c352f0bb8739014
v4l2: improve control ID printing

Control ID space is hierarchical, so, higher bits provide information
about control class.

* v4l2.c (print_v4l2_cid): New function.
(print_v4l2_control): Use print_v4l2_cid for printing control ID field.
* tests/ioctl_v4l2.c: Add checks for control ID printing.
tests/ioctl_v4l2.c
v4l2.c