Skip to content

Commit

Permalink
WIP include char in debug trace
Browse files Browse the repository at this point in the history
  • Loading branch information
silentbicycle committed Sep 29, 2024
1 parent 85ae764 commit 1ca25c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libfsm/print/cdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ generate_interpreter(FILE *f, const struct cdata_config *config, const struct fs
"\t\tconst uint64_t bit = (uint64_t)1 << word_rem;\n"
"\t\tif (state->labels[w_i] & bit) { /* if state has label */\n"
"\t\tif (debug_traces) {\n"
"\t\t\tfprintf(stderr, \"-- label -> w_i %%zd, bit 0x%%016lx\\n\", w_i, bit);\n"
"\t\t\tfprintf(stderr, \"-- label '%%c' (0x%%02x) -> w_i %%zd, bit 0x%%016lx\\n\", isprint(c) ? c : 'c', c, w_i, bit);\n"
"\t\t}\n"
"\t\t\tconst uint64_t mask = bit - 1;\n"
"\t\t\tconst uint64_t masked_word = state->label_group_starts[w_i] & mask;\n"
Expand Down

0 comments on commit 1ca25c0

Please sign in to comment.