[igt-dev] [PATCH i-g-t 3/3] intel_gpu_top: Fix interactive header

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Mon Feb 1 10:45:24 UTC 2021


From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Client stats refactoring broke the header layout with an extra newline.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
 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 dffc6ebecc57..9b8302de54da 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -1523,7 +1523,7 @@ print_header(const struct igt_device_card *card,
 		printf("\033[H\033[J");
 
 		if (lines++ < con_h)
-			printf("intel-gpu-top: %s @ %s\n",
+			printf("intel-gpu-top: %s @ %s - ",
 			       codename, card->card);
 		if (lines++ < con_h) {
 			printf("%s/%s MHz; %s%% RC6; ",
-- 
2.27.0



More information about the igt-dev mailing list