From patchwork Mon May 30 15:55:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yi Sun X-Patchwork-Id: 830512 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4UFtsTW002879 for ; Mon, 30 May 2011 15:56:16 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7224D9F375 for ; Mon, 30 May 2011 08:55:54 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 909069E772 for ; Mon, 30 May 2011 08:55:37 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 30 May 2011 08:55:37 -0700 X-ExtLoop1: 1 Received: from unknown (HELO sunyi-pc.sh.intel.com) ([10.239.36.72]) by orsmga002.jf.intel.com with ESMTP; 30 May 2011 08:55:36 -0700 From: yi.sun@intel.com To: intel-gfx@lists.freedesktop.org Date: Mon, 30 May 2011 23:55:22 +0800 Message-Id: <1306770922-2727-1-git-send-email-yi.sun@intel.com> X-Mailer: git-send-email 1.7.5.2 Subject: [Intel-gfx] [PATCH] Print the pixel clock of each mode. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 30 May 2011 15:56:16 +0000 (UTC) From: Sun Yi --- tests/testdisplay.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 41a5753..1efc6e5 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -157,7 +157,7 @@ struct connector { static void dump_mode(drmModeModeInfo *mode) { - printf(" %s %d %d %d %d %d %d %d %d %d 0x%x 0x%x\n", + printf(" %s %d %d %d %d %d %d %d %d %d 0x%x 0x%x %d\n", mode->name, mode->vrefresh, mode->hdisplay, @@ -169,7 +169,8 @@ static void dump_mode(drmModeModeInfo *mode) mode->vsync_end, mode->vtotal, mode->flags, - mode->type); + mode->type, + mode->clock); } static void dump_connectors(void) @@ -201,7 +202,7 @@ static void dump_connectors(void) printf(" modes:\n"); printf(" name refresh (Hz) hdisp hss hse htot vdisp " - "vss vse vtot flags type\n"); + "vss vse vtot flags type clock\n"); for (j = 0; j < connector->count_modes; j++) dump_mode(&connector->modes[j]);