diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-04-24 10:34:57 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-04-24 10:34:57 +0200 |
commit | 7e510e53fe4c715d1a3630910136bfded41fbfbd (patch) | |
tree | b4748a55aa4ba7514c185301c8bfc019ff9d499d /drminfo.c | |
parent | 34cd7ded2cf9ffe5ce90f1c15b804bf3bf53dcd5 (diff) | |
download | drminfo-7e510e53fe4c715d1a3630910136bfded41fbfbd.tar.gz |
list format tweaks
Diffstat (limited to 'drminfo.c')
-rw-r--r-- | drminfo.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -99,7 +99,7 @@ static void drm_info_fmts(int fd) for (i = 0; i < fmtcnt; i++) { if (!drm_probe_format(fd, &fmts[i])) continue; - drm_print_format(stdout, &fmts[i]); + drm_print_format(stdout, &fmts[i], " ", ""); } fprintf(stdout, "\n"); } @@ -164,11 +164,14 @@ static void drm_info(int devnr) static void list_formats(FILE *fp) { + char libs[64]; int i; fprintf(stdout, "all known framebuffer formats (rgb + packed yuv)\n"); for (i = 0; i < fmtcnt; i++) { - drm_print_format(stdout, &fmts[i]); + snprintf(libs, sizeof(libs), " %s", + (fmts[i].cairo == CAIRO_FORMAT_INVALID) ? "" : "cairo"); + drm_print_format(stdout, &fmts[i], "", libs); } fprintf(stdout, "\n"); } |