Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tools/intel_gpu_top: Fix misaligned rendering
@ 2024-01-14 21:26 anonymoustranquillity
  2024-01-15 12:19 ` ✓ CI.xeBAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: anonymoustranquillity @ 2024-01-14 21:26 UTC (permalink / raw)
  To: igt-dev@lists.freedesktop.org

Hello, 

there seems to be a problem with rendering in the interactive mode in intel_gpu_top, seems to be a simple off-by-one. Below is a patch. I am new to contributing via email, so I apologize if I did something wrong - I tried to follow CONTRIBUTING.md to the best of my ability.

Have a nice day,
- Ity.

---
 tools/intel_gpu_top.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 046ead15a..24363e72f 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -2178,7 +2178,7 @@ print_client(struct igt_drm_client *c, struct engines *engines, double t, int li
 			len += *class_w;
 		}
 
-		printf(" %-*s\n", con_w - len - 1, c->print_name);
+		printf(" %-*s\n", con_w - len - 2, c->print_name);
 	} else if (output_mode == JSON) {
 		char buf[64];
 
-- 
2.43.0

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

end of thread, other threads:[~2024-01-16 13:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-14 21:26 [PATCH i-g-t] tools/intel_gpu_top: Fix misaligned rendering anonymoustranquillity
2024-01-15 12:19 ` ✓ CI.xeBAT: success for " Patchwork
2024-01-15 12:39 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-01-15 15:29 ` [PATCH i-g-t] " Kamil Konieczny
2024-01-16  8:49   ` Tvrtko Ursulin
     [not found]     ` <EOyBwdNxkVNQWyfdtYOrT4lVOSHddYw7GcBAVb3X7zd7i4PXIZfA2qPVZmOW89smu3o4u4cXUs5I6ebB2SxI-cC9JuCwyrsEBLPv9tjRRLk=@proton.me>
2024-01-16  9:42       ` Fw: " anonymoustranquillity
     [not found]       ` <02ed8aa7-f4e3-4648-b393-81cf103112e3@linux.intel.com>
2024-01-16 12:32         ` anonymoustranquillity
2024-01-16 13:03           ` Tvrtko Ursulin

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