OSDN Git Service

modetest: Also print the pixel clock
authorStéphane Marchesin <marcheu@chromium.org>
Thu, 1 Sep 2016 02:45:45 +0000 (19:45 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 1 Sep 2016 15:02:46 +0000 (16:02 +0100)
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>
tests/modetest/modetest.c

index 21d5438..dedd286 100644 (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);