summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2023-08-18 15:48:31 -0700
committerDmitry Baryshkov <dbaryshkov@gmail.com>2023-09-13 16:26:49 +0000
commit13691f5266c22186c752d813750f2f6d02aa470c (patch)
treef8fc73fe39f758a0183d0262171cc2130fbb4cf9
parentdfd00c6250e51e7327a1af5311eacb374b9bc8fb (diff)
modetest: print modifiers in hex as well
Print modifiers in hex in addtion to in strings returned by drmGetFormatModifierName. In some cases, hex numbers can be more easily compared visually. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
-rw-r--r--tests/modetest/modetest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index a7f69a70..861a06eb 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -330,7 +330,7 @@ static void dump_in_formats(struct device *dev, uint32_t blob_id)
printf(": ");
}
- printf(" %s", modifier_to_string(iter.mod));
+ printf(" %s(0x%"PRIx64")", modifier_to_string(iter.mod), iter.mod);
}
printf("\n");