diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2020-03-01 18:45:48 +0100 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2020-03-30 23:14:24 +0200 |
commit | 5e7f709436ef734fc00f86111ccc48464df8be51 (patch) | |
tree | 129d91281c5417c12b15a9a801d084c4b1f7aa05 | |
parent | 26c9ee0d17d3f1b561524de3bd892692c8b97225 (diff) | |
download | strace-5e7f709436ef734fc00f86111ccc48464df8be51.tar.gz |
v4l2: handle -Xraw in print_v4l2_cid
Print class ID as simple hex value in that case.
* v4l2.c (print_v4l2_cid): Print cid as hex and return if
xlat_verbose(xlat_verbosity) == XLAT_STYLE_RAW.
-rw-r--r-- | v4l2.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -665,6 +665,11 @@ print_v4l2_input(struct tcb *const tcp, const kernel_ulong_t arg) static void print_v4l2_cid(const uint32_t cid) { + if (xlat_verbose(xlat_verbosity) == XLAT_STYLE_RAW) { + tprintf("%#x", cid); + return; + } + const char *id_name = xlookup(v4l2_control_ids, cid); if (id_name) { |