Blame SOURCES/0009-irqbalance-ui-move-ASSIGNED-TO-CPUS-to-the-last-colu.patch

120141
From 7f1caca47aee32084c319db07d9a236684b818a3 Mon Sep 17 00:00:00 2001
120141
From: Liu Chao <liuchao173@huawei.com>
120141
Date: Tue, 28 Jun 2022 16:42:10 +0800
120141
Subject: [PATCH 09/14] irqbalance-ui: move 'ASSIGNED TO CPUS' to the last
120141
 column
120141
120141
Signed-off-by: Liu Chao <liuchao173@huawei.com>
120141
---
120141
 ui/ui.c | 10 +++++-----
120141
 1 file changed, 5 insertions(+), 5 deletions(-)
120141
120141
diff --git a/ui/ui.c b/ui/ui.c
120141
index 6ff3305..beafe3a 100644
120141
--- a/ui/ui.c
120141
+++ b/ui/ui.c
120141
@@ -331,7 +331,7 @@ void print_assigned_objects_string(irq_t *irq, int *line_offset)
120141
 	char assigned_to[128] = "\0";
120141
 	for_each_int(irq->assigned_to, copy_assigned_obj, assigned_to);
120141
 	assigned_to[strlen(assigned_to) - 2] = '\0';
120141
-	mvprintw(*line_offset, 36, "%s", assigned_to);
120141
+	mvprintw(*line_offset, 68, "%s", assigned_to);
120141
 }
120141
 
120141
 void print_irq_line(irq_t *irq, void *data)
120141
@@ -364,9 +364,9 @@ void print_irq_line(irq_t *irq, void *data)
120141
 	}
120141
 	mvprintw(*line_offset, 3, "IRQ %d", irq->vector);
120141
 	mvprintw(*line_offset, 19, "%s", irq->is_banned ? "YES" : "NO ");
120141
-	print_assigned_objects_string(irq, line_offset);
120141
-	mvprintw(*line_offset, 84, "%s",
120141
+	mvprintw(*line_offset, 36, "%s",
120141
 			 irq->class < 0 ? "Unknown" : IRQ_CLASS_TO_STR[irq->class]);
120141
+	print_assigned_objects_string(irq, line_offset);
120141
 	(*line_offset)++;
120141
 
120141
 }
120141
@@ -377,8 +377,8 @@ void print_all_irqs()
120141
 	*line = 4;
120141
 	attrset(COLOR_PAIR(0));
120141
 	mvprintw(2, 3,
120141
-			"NUMBER          IS BANNED        ASSIGNED TO CPUS      \
120141
-			    CLASS");
120141
+			"NUMBER          IS BANNED        CLASS      \
120141
+			    ASSIGNED TO CPUS");
120141
 	for_each_irq(all_irqs, print_irq_line, line);
120141
 }
120141
 
120141
-- 
120141
2.33.1
120141