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>
main
Emil Velikov 2018-06-25 18:31:35 +01:00 committed by Emil Velikov
parent 8a3a8c15e2
commit 68bd236aa4
1 changed files with 2 additions and 2 deletions

View File

@ -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) {