summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2018-06-25 18:31:35 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2018-07-24 16:27:57 +0100
commit68bd236aa417048238dc28464540a85ceb88963e (patch)
tree933ea4d190798a146a87da1c21278562bbc92596 /tests
parent8a3a8c15e2917fe0e3006ac5305a9df15970a56a (diff)
downloadlibdrm-68bd236aa417048238dc28464540a85ceb88963e.tar.gz
libdrm-68bd236aa417048238dc28464540a85ceb88963e.tar.bz2
libdrm-68bd236aa417048238dc28464540a85ceb88963e.zip
drmdevice: print the correct host1x information
While fairly close, the host1x and platform are two separate things. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Tested-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/drmdevice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/drmdevice.c b/tests/drmdevice.c
index 049df3cf..cdf6e8de 100644
--- a/tests/drmdevice.c
+++ b/tests/drmdevice.c
@@ -85,13 +85,13 @@ print_device_info(drmDevicePtr device, int i, bool print_revision)
compatible++;
}
} else if (device->bustype == DRM_BUS_HOST1X) {
- char **compatible = device->deviceinfo.platform->compatible;
+ char **compatible = device->deviceinfo.host1x->compatible;
printf("| +-> host1x\n");
printf("| +-> fullname\t%s\n", device->businfo.host1x->fullname);
printf("+-> deviceinfo\n");
- printf(" +-> platform\n");
+ printf(" +-> host1x\n");
printf(" +-> compatible\n");
while (*compatible) {