diff options
author | Sun Yi <yi.sun@intel.com> | 2011-05-30 18:20:30 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-05-31 11:50:38 -0700 |
commit | 91f609741d7497c4bcc113e74028f9c4948d8b48 (patch) | |
tree | 6207d2f12c3b83c12ed49379b19a7c9ddfe4b55f | |
parent | 9b325c8a864efce172bdfaf82e251284f115e263 (diff) |
testdisplay: print pixel clock in mode debug output
Print the pixel clock of each mode.
-rw-r--r-- | tests/testdisplay.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 41a57538..1efc6e5c 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]); |