projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
badfcf2
)
action: enhance print() message
author
Brian Norris
<banorris@uci.edu>
Sat, 26 May 2012 02:19:15 +0000
(19:19 -0700)
committer
Brian Norris
<banorris@uci.edu>
Sat, 26 May 2012 03:39:00 +0000
(20:39 -0700)
Include clock vector, realign
action.cc
patch
|
blob
|
history
diff --git
a/action.cc
b/action.cc
index b0d8fc9b7bed4aaacc843cc8620c0abfffc1dd00..73d4c498a2c03a0a26b085fbf6a8b94a289b277a 100644
(file)
--- a/
action.cc
+++ b/
action.cc
@@
-122,6
+122,11
@@
void ModelAction::print(void)
type_str = "unknown type";
}
- printf("(%
4d) Thread: %d\tAction: %s\tMO: %d\tLoc: %14p\tValue: %d\n
",
+ printf("(%
3d) Thread: %-2d Action: %-13s MO: %d Loc: %14p Value: %d
",
seq_number, id_to_int(tid), type_str, order, location, value);
+ if (cv) {
+ printf("\t");
+ cv->print();
+ } else
+ printf("\n");
}