summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2020-03-01 18:45:48 +0100
committerEugene Syromyatnikov <evgsyr@gmail.com>2020-03-30 23:14:24 +0200
commit5e7f709436ef734fc00f86111ccc48464df8be51 (patch)
tree129d91281c5417c12b15a9a801d084c4b1f7aa05
parent26c9ee0d17d3f1b561524de3bd892692c8b97225 (diff)
downloadstrace-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/v4l2.c b/v4l2.c
index 3cf334821..78234394c 100644
--- a/v4l2.c
+++ b/v4l2.c
@@ -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) {