Skip to content

Commit de06d9e

Browse files
committed
Improving readability of bit field for reverse computation
1 parent 159caea commit de06d9e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/check-revent/crv-state.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ static crv_checkpointer * get_chkpntr(tw_lpid id) {
8888
static void print_event(crv_checkpointer const * chkptr, tw_lp * clp, tw_event * cev) {
8989
fprintf(stderr, "\n Event:\n ---------\n");
9090
fprintf(stderr, " Bit field contents\n");
91-
tw_fprint_binary_array(stderr, "", &cev->cv, 4);
91+
tw_bf b = cev->cv;
92+
fprintf(stderr, " c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15\n");
93+
fprintf(stderr, " %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d \n", b.c0, b.c1, b.c2, b.c3, b.c4, b.c5, b.c6, b.c7, b.c8, b.c9, b.c10, b.c11, b.c12, b.c13, b.c14, b.c15);
94+
fprintf(stderr, " c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31\n");
95+
fprintf(stderr, " %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d \n", b.c16, b.c17, b.c18, b.c19, b.c20, b.c21, b.c22, b.c23, b.c24, b.c25, b.c26, b.c27, b.c28, b.c29, b.c30, b.c31);
9296
fprintf(stderr, " ---------\n Event contents\n");
9397
tw_fprint_binary_array(stderr, "", tw_event_data(cev), g_tw_msg_sz);
9498
if (chkptr && chkptr->print_event) {

0 commit comments

Comments
 (0)