diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2023-08-18 15:48:31 -0700 |
---|---|---|
committer | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2023-09-13 16:26:49 +0000 |
commit | 13691f5266c22186c752d813750f2f6d02aa470c (patch) | |
tree | f8fc73fe39f758a0183d0262171cc2130fbb4cf9 | |
parent | dfd00c6250e51e7327a1af5311eacb374b9bc8fb (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.c | 2 |
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"); |