[sheepdog] [PATCH v3 3/3] collie/trace: use macro for the width of thread name

Liu Yuan namei.unix at gmail.com
Mon Aug 12 08:08:37 CEST 2013


Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 collie/trace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/collie/trace.c b/collie/trace.c
index 5e8fd59..1271e7c 100644
--- a/collie/trace.c
+++ b/collie/trace.c
@@ -26,7 +26,7 @@
 
 static inline void print_thread_name(struct trace_graph_item *item)
 {
-	printf("%-20s|", item->tname);
+	printf("%-*s|", TRACE_THREAD_LEN, item->tname);
 }
 
 static inline void print_time(struct trace_graph_item *item)
-- 
1.7.9.5




More information about the sheepdog mailing list