diff mbox

modetest: Also print the pixel clock

Message ID 1472697945-44839-1-git-send-email-marcheu@chromium.org (mailing list archive)
State New, archived
Headers show

Commit Message

Stéphane Marchesin Sept. 1, 2016, 2:45 a.m. UTC
This can be useful for debugging. xrandr prints it, so why not.
---
 tests/modetest/modetest.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Alex Deucher Sept. 1, 2016, 1:18 p.m. UTC | #1
On Wed, Aug 31, 2016 at 10:45 PM, Stéphane Marchesin
<marcheu@chromium.org> wrote:
> This can be useful for debugging. xrandr prints it, so why not.
> ---
>  tests/modetest/modetest.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

>
> 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);
> --
> 2.8.0.rc3.226.g39d4020
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

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