Skip to contentSkip to conversation

modetest: Also print the pixel clock

PATCH In review Stéphane Marchesin 2 participants 2 messages Sep 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 modetest: Also print the pixel clock

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

---
 tests/modetest/modetest.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
tests/modetest/modetest.c +3 -2
index 21d5438..dedd286 100644
@@ -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);
Signature · 6 lines
2.8.0.rc3.226.g39d4020

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Stéphane Marchesin

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

---
 tests/modetest/modetest.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Quoted 27 lines
tests/modetest/modetest.c +3 -3
index 21d5438..dedd286 100644
@@ -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

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel