[sheepdog] [PATCH v2 5/5] collie/trace: use macro for the width of thread name
Liu Yuan
namei.unix at gmail.com
Sat Aug 10 17:30:35 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 651fd6c..85c8241 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