Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [i-g-t V2] lib/igt_kms: Format cleanup in DRM mode printing
@ 2024-06-25  3:58 Bhanuprakash Modem
  2024-06-25  4:51 ` ✓ CI.xeBAT: success for lib/igt_kms: Format cleanup in DRM mode printing (rev2) Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Bhanuprakash Modem @ 2024-06-25  3:58 UTC (permalink / raw)
  To: igt-dev; +Cc: Bhanuprakash Modem, Jeevan B

While printing the DRM mode, align the style with the
Kernel logs, so that it would be easy to compare & debug.

Example:
 Old:- 2880x1800 60 2880 2928 2960 3040 1800 1803 1809 1906 0xa 0x48 347710
 New:- 2880x1800: 60 347710 2880 2928 2960 3040 1800 1803 1809 1906 0x48 0xa

V2:
- Minor cleanup (Jeevan)

Cc: Jeevan B <jeevan.b@intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 lib/igt_kms.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 2e6f44e3c..174bbe6c4 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1144,13 +1144,13 @@ void kmstest_dump_mode(drmModeModeInfo *mode)
 	const char *stereo = mode_stereo_name(mode);
 	const char *aspect = mode_picture_aspect_name(mode);
 
-	igt_info("  %s %d %d %d %d %d %d %d %d %d 0x%x 0x%x %d%s%s%s%s%s%s\n",
-		 mode->name, mode->vrefresh,
+	igt_info("  %s: %d %d %d %d %d %d %d %d %d %d 0x%x 0x%x %s%s%s%s%s%s\n",
+		 mode->name, mode->vrefresh, mode->clock,
 		 mode->hdisplay, mode->hsync_start,
 		 mode->hsync_end, mode->htotal,
 		 mode->vdisplay, mode->vsync_start,
 		 mode->vsync_end, mode->vtotal,
-		 mode->flags, mode->type, mode->clock,
+		 mode->type, mode->flags,
 		 stereo ? " (3D:" : "",
 		 stereo ? stereo : "", stereo ? ")" : "",
 		 aspect ? " (PAR:" : "",
-- 
2.43.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-30  6:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-25  3:58 [i-g-t V2] lib/igt_kms: Format cleanup in DRM mode printing Bhanuprakash Modem
2024-06-25  4:51 ` ✓ CI.xeBAT: success for lib/igt_kms: Format cleanup in DRM mode printing (rev2) Patchwork
2024-06-25  5:01 ` ✓ Fi.CI.BAT: " Patchwork
2024-06-25  6:17 ` ✗ CI.xeFULL: failure " Patchwork
2024-06-25 16:36 ` [i-g-t V2] lib/igt_kms: Format cleanup in DRM mode printing B, Jeevan
2024-06-26  2:39 ` ✗ Fi.CI.IGT: failure for lib/igt_kms: Format cleanup in DRM mode printing (rev2) Patchwork
2024-06-30  6:55 ` [i-g-t V2] lib/igt_kms: Format cleanup in DRM mode printing Reddy Guddati, Santhosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox