diff options
-rw-r--r-- | tests/modetest/modetest.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index 8ff6c80d..42e2d1f4 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -187,11 +187,9 @@ static bit_name_fn(mode_flag) static void dump_fourcc(uint32_t fourcc) { - printf(" %c%c%c%c", - fourcc, - fourcc >> 8, - fourcc >> 16, - fourcc >> 24); + char *name = drmGetFormatName(fourcc); + printf(" %s", name); + free(name); } static void dump_encoders(struct device *dev) |