From patchwork Mon Jun 25 17:36:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 10487097 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 34D2260230 for ; Mon, 25 Jun 2018 17:39:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 170312844C for ; Mon, 25 Jun 2018 17:39:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BFB828451; Mon, 25 Jun 2018 17:39:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C94D62844C for ; Mon, 25 Jun 2018 17:39:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8F1B3894C9; Mon, 25 Jun 2018 17:38:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 15B586E36E for ; Mon, 25 Jun 2018 17:38:40 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id p126-v6so10237465wmb.2 for ; Mon, 25 Jun 2018 10:38:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5r+GYzaooej/Ge0WtKfxlZlrBEOn+j50oNep+z871ZY=; b=kZZTWiT195kpet9vkzgt39IFpF1M+HJbbsTPwl7sTOLwJ3FgC5C0wDFdPywtMCS32I 88g6AcY+inTO2C2Oqt3wpOTxEUc2zUc+Up+Pg6EcZGARr0sTwGz0QBOYTqr3nmhzKtQI S2VLHM6XO00Sds5Wxa1lknhNjjR8unEdj6HhZKp5LVAE5CeV4lR9f5GHeg1xRtAgjZz9 cC+zvILLw8zrD+ULgM36e4HwqRNAG9ihWvhqn4owljH2L534VbeGDPttd8hdqfDaYrl0 sucX0Ddsil+CF0RP4D6E8KmMNLyIaA3QRmYkiLZDA4Ivj4dpvdddTloYREpM7R/AtAxE qBmQ== X-Gm-Message-State: APt69E3E45dcOWucJsfoudsnVPeYetM1UHT2EIIgrZYqmSA74cuhM5/l 5bzYe3nWV5FofiG/8I6R8OvcNQ== X-Google-Smtp-Source: AAOMgpdAhowQ3zCgSIfv9UHtgR8CghM9S8bfXg8zW5YW903YdFDKazJ6T+hWHWrmgeV/MWdLngHtxg== X-Received: by 2002:a1c:ae94:: with SMTP id x142-v6mr1676331wme.22.1529948318610; Mon, 25 Jun 2018 10:38:38 -0700 (PDT) Received: from arch-x1c3.cbg.collabora.co.uk ([2a00:5f00:102:0:9665:9cff:feee:aa4d]) by smtp.gmail.com with ESMTPSA id p8-v6sm6581019wrq.70.2018.06.25.10.38.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 10:38:37 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 10/10] drmdevice: print the correct host1x information Date: Mon, 25 Jun 2018 18:36:26 +0100 Message-Id: <20180625173626.8046-10-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180625173626.8046-1-emil.l.velikov@gmail.com> References: <20180625173626.8046-1-emil.l.velikov@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emil.l.velikov@gmail.com MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Emil Velikov While fairly close, the host1x and platform are two separate things. Signed-off-by: Emil Velikov --- tests/drmdevice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/drmdevice.c b/tests/drmdevice.c index e9e9d7f1..97ce8ff9 100644 --- a/tests/drmdevice.c +++ b/tests/drmdevice.c @@ -86,13 +86,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) {