modetest: Also print the pixel clock

This can be useful for debugging. xrandr prints it, so why not.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
main
Stéphane Marchesin 2016-08-31 19:45:45 -07:00 committed by Emil Velikov
parent 587e5a8179
commit 72a041694e
1 changed files with 3 additions and 2 deletions

View File

@ -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);