diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-07-25 17:20:12 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-11-24 15:16:34 -0500 |
commit | f39cb0054e5d261aea167dcbd59390c4726842e8 (patch) | |
tree | ab89349c86c895451dc08f742a7e5c607c254315 /src | |
parent | 6d5089ca72c3dce534c5ae23aec36f3f4e5ae4f8 (diff) |
create nicer output in ftdump
Diffstat (limited to 'src')
-rw-r--r-- | src/ftdump.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/ftdump.c b/src/ftdump.c index f18ced3..39747c9 100644 --- a/src/ftdump.c +++ b/src/ftdump.c | |||
@@ -38,12 +38,19 @@ static void dump(struct timestamp* ts, size_t count) | |||
38 | printf("==== non-consecutive sequence number ====\n"); | 38 | printf("==== non-consecutive sequence number ====\n"); |
39 | last_seq = x->seq_no; | 39 | last_seq = x->seq_no; |
40 | if (name) | 40 | if (name) |
41 | printf("%-15s %-8s seq:%u cpu:%d timestamp:%llu\n", | 41 | printf("%-20s seq:%u timestamp:%llu cpu:%d type:%-8s \n", |
42 | name, task_type2str(x->task_type), x->seq_no, x->cpu, | 42 | name, x->seq_no, |
43 | (unsigned long long) x->timestamp); | 43 | (unsigned long long) x->timestamp, |
44 | x->cpu, | ||
45 | task_type2str(x->task_type)); | ||
44 | else | 46 | else |
45 | printf("event:%d seq:%u cpu:%d type:%s\n", | 47 | printf("%16s:%3u seq:%u timestamp:%llu cpu:%u type:%-8s\n", |
46 | (int) x->event, x->seq_no, x->cpu, task_type2str(x->task_type)); | 48 | "event", |
49 | (unsigned int) x->event, x->seq_no, | ||
50 | (unsigned long long) x->timestamp, | ||
51 | x->cpu, | ||
52 | task_type2str(x->task_type)); | ||
53 | |||
47 | } | 54 | } |
48 | } | 55 | } |
49 | 56 | ||