drmdevice: print the correct host1x information
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 25 Jun 2018 17:31:35 +0000 (18:31 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 Jul 2018 15:27:57 +0000 (16:27 +0100)
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>
tests/drmdevice.c

index 049df3c..cdf6e8d 100644 (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) {