From patchwork Thu Sep 1 02:45:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?St=C3=A9phane_Marchesin?= X-Patchwork-Id: 9308209 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 0AFAB607D6 for ; Thu, 1 Sep 2016 02:45:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E81D428FE0 for ; Thu, 1 Sep 2016 02:45:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9ABE28FDF; Thu, 1 Sep 2016 02:45:52 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 8E72228FDF for ; Thu, 1 Sep 2016 02:45:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C0C6C6E88C; Thu, 1 Sep 2016 02:45:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com [IPv6:2607:f8b0:400e:c03::22e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 699EC6E88C for ; Thu, 1 Sep 2016 02:45:48 +0000 (UTC) Received: by mail-pa0-x22e.google.com with SMTP id fi15so24546018pac.1 for ; Wed, 31 Aug 2016 19:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=ufsqTR/gkFGH4LYEM8EbaJaGsuFF1VLynJQNPp8LH+w=; b=WjLwAFLv+Tc+YMcuMl/GMq52oiuztCnBildEi7BZj0I13PUieV4annOal0a53Un4tU yQ2j0gcYfCubezwQlhK4o+xEAjQfoEoY9HCllbieEPPDocRGrvRhVMqRnmnWCuOdEAOj F8ov/TDUEMa1U+28AbcvpxCvH3rMR0tYGgJeU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ufsqTR/gkFGH4LYEM8EbaJaGsuFF1VLynJQNPp8LH+w=; b=JJiga+bAVkdWQ62mLB64ZH8Ggd1mzXngJ6sS65BrShPTmvyzOuDfGuioCfmXxBDzIH 74JlC4lAdhaZfNi9POwChqTzUy2zc+1bJXd2ahn71psOO4hRqh5BZGBrRCPGv6JO4kvo MnwFAdpTsGU0qazq8dJ7fj/LYd9jGvq/uZABz+N6C3bl3w6gnsddNlLp1sTcn3vwaSUf hn0MQ1SItK1PQ7Br/Rr27EaPvDrp7QkUDK63S/wU8krYCGb2gDiGvdQe+ChzfqYhwfIa d+znBbPBM5eNSARlzy1WlgvXV3vYh8AwlQLMFd5pEJAex3LF1upZpgIfs5CxK5MqHGPd uMIA== X-Gm-Message-State: AE9vXwNIW5v/XXxp7dZfrAebFLcrcWMMs8xDnlSJkuW1j92jxWzdp0EEli8XKYyIgC+5TzF/ X-Received: by 10.66.153.204 with SMTP id vi12mr22143527pab.6.1472697948025; Wed, 31 Aug 2016 19:45:48 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:a87e:5e88:48e4:f28c]) by smtp.gmail.com with ESMTPSA id xn11sm2652391pac.38.2016.08.31.19.45.47 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 31 Aug 2016 19:45:47 -0700 (PDT) From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= To: dri-devel@lists.freedesktop.org Subject: [PATCH] modetest: Also print the pixel clock Date: Wed, 31 Aug 2016 19:45:45 -0700 Message-Id: <1472697945-44839-1-git-send-email-marcheu@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 Cc: =?UTF-8?q?St=C3=A9phane=20Marchesin?= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This can be useful for debugging. xrandr prints it, so why not. Reviewed-by: Alex Deucher --- tests/modetest/modetest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index 21d5438..dedd286 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -198,7 +198,7 @@ static void dump_encoders(struct device *dev) static void dump_mode(drmModeModeInfo *mode) { - printf(" %s %d %d %d %d %d %d %d %d %d", + printf(" %s %d %d %d %d %d %d %d %d %d %d", mode->name, mode->vrefresh, mode->hdisplay, @@ -208,7 +208,8 @@ static void dump_mode(drmModeModeInfo *mode) mode->vdisplay, mode->vsync_start, mode->vsync_end, - mode->vtotal); + mode->vtotal, + mode->clock); printf(" flags: "); mode_flag_str(mode->flags);