diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-03-28 09:19:49 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-03-28 09:19:49 +0100 |
commit | a0c9d2e5b1fbff99ce1281b322a31c718245ceba (patch) | |
tree | 67979e8dc6ad05d172201046c914d9b3c761cf9f /drmtools.c | |
parent | fca17ca477aad828e62e13622262497a982e7584 (diff) | |
download | drminfo-a0c9d2e5b1fbff99ce1281b322a31c718245ceba.tar.gz |
virtiotest fixes
Diffstat (limited to 'drmtools.c')
-rw-r--r-- | drmtools.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -658,7 +658,7 @@ done: } void drm_print_format(FILE *fp, const struct fbformat *fmt, - int indent, bool libs) + int indent, bool libs, bool virtio) { fprintf(fp, "%*s%-8s: [%2d:0] %-14s %-11s %c %c %c %-16s", indent, "", @@ -674,10 +674,14 @@ void drm_print_format(FILE *fp, const struct fbformat *fmt, fmt->pixman ? "pixman" : "", (fmt->cairo != CAIRO_FORMAT_INVALID) ? "cairo" : ""); } + if (virtio) { + if (fmt->virtio) + fprintf(fp, " %-6d", fmt->virtio); + } fprintf(fp, "\n"); } -void drm_print_format_hdr(FILE *fp, int indent, bool libs) +void drm_print_format_hdr(FILE *fp, int indent, bool libs, bool virtio) { fprintf(fp, "%*s%-8s: %-6s %-14s %-11s %-6s %-16s", indent, "", @@ -686,6 +690,9 @@ void drm_print_format_hdr(FILE *fp, int indent, bool libs) if (libs) { fprintf(fp, " lib support"); } + if (virtio) { + fprintf(fp, " virtio"); + } fprintf(fp, "\n"); } |