[PATCH 6/8] ipipe: Fix output layout of tracer

Jan Kiszka jan.kiszka at siemens.com
Wed Mar 27 14:18:05 CET 2019


From: Jan Kiszka <jan.kiszka at siemens.com>

A long time ago (probably in 2.6-times), someone converted spaces to
tabs, shuffling the layout around this way, and by forgetting to account
for the multi-domain removal.

Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
---
 kernel/ipipe/tracer.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/kernel/ipipe/tracer.c b/kernel/ipipe/tracer.c
index 8d58ab143469..2d75199b086b 100644
--- a/kernel/ipipe/tracer.c
+++ b/kernel/ipipe/tracer.c
@@ -842,7 +842,7 @@ __ipipe_print_delay(struct seq_file *m, struct ipipe_trace_point *point)
 {
 	unsigned long delay = 0;
 	int next;
-	char *mark = "	";
+	char *mark = "  ";
 
 	next = WRAP_POINT_NO(point+1 - print_path->point);
 
@@ -916,12 +916,12 @@ static void __ipipe_print_headline(struct seq_file *m)
 			   " +----- Hard IRQs ('|': locked)\n"
 			   " |+-- %s\n"
 			   " ||+- %s%s\n"
-			   " |||			  +---------- "
+		           " |||                        +---------- "
 			       "Delay flag ('+': > %d us, '!': > %d us)\n"
-			   " |||			  |	   +- "
+			   " |||                        |        +- "
 			       "NMI noise ('N')\n"
-			   " |||			  |	   |\n"
-			   "	  Type	  User Val.   Time    Delay  Function "
+			   " |||                        |        |\n"
+			   "    Type    User Val.   Time    Delay  Function "
 			       "(Parent)\n",
 			   name[1], name[0],
 			   " ('*': domain stalled, '+': current, "
@@ -930,9 +930,9 @@ static void __ipipe_print_headline(struct seq_file *m)
 	} else
 		seq_printf(m,
 			   " +--------------- Hard IRQs ('|': locked)\n"
-			   " |		   +- Delay flag "
+			   " |             +- Delay flag "
 			       "('+': > %d us, '!': > %d us)\n"
-			   " |		   |\n"
+			   " |             |\n"
 			   "  Type     Time   Function (Parent)\n",
 			   IPIPE_DELAY_NOTE/1000, IPIPE_DELAY_WARN/1000);
 }
-- 
2.16.4




More information about the Xenomai mailing list