diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-09-04 07:46:48 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-10-19 16:54:29 -0400 |
| commit | 861b556c5a9867f2abe600901cbf3054195377c1 (patch) | |
| tree | 67a25bb1e32712f1fbe484cb60aaf2fc4a45d1d8 /src | |
| parent | a1d385412709a36f85cab66deb578484439400c5 (diff) | |
Be more verbose about aborted moves
Diffstat (limited to 'src')
| -rw-r--r-- | src/ftsort.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ftsort.c b/src/ftsort.c index 181845f..42717fe 100644 --- a/src/ftsort.c +++ b/src/ftsort.c | |||
| @@ -140,6 +140,17 @@ static void move_record(struct timestamp* target, struct timestamp* pos) | |||
| 140 | /* Bail out before we cause more disturbance to the | 140 | /* Bail out before we cause more disturbance to the |
| 141 | * stream. */ | 141 | * stream. */ |
| 142 | aborted_moves++; | 142 | aborted_moves++; |
| 143 | if (want_verbose) | ||
| 144 | printf("Sequentiality constraint: " | ||
| 145 | "<ev:%s seq:%u pid:%u cpu:%u at %llu> " | ||
| 146 | "must come before " | ||
| 147 | "<ev:%s seq:%u pid:%u cpu:%u at %llu>\n", | ||
| 148 | event2str(prev->event), | ||
| 149 | prev->seq_no, prev->pid, prev->cpu, | ||
| 150 | (unsigned long long) prev->timestamp, | ||
| 151 | event2str(pos->event), | ||
| 152 | pos->seq_no, pos->pid, pos->cpu, | ||
| 153 | (unsigned long long) pos->timestamp); | ||
| 143 | return; | 154 | return; |
| 144 | } | 155 | } |
| 145 | } | 156 | } |
