forked from osmocom/wireshark
json_dumper: flush dumper before printing an error.
This helps the developer in the debug phases. Change-Id: I85558334b5d618219a48a6c00129cd36a6ab0b10 Reviewed-on: https://code.wireshark.org/review/32531 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
parent
41e31a3e41
commit
ed40d31801
|
@ -100,6 +100,7 @@ json_dumper_bad(json_dumper *dumper, enum json_dumper_change change,
|
|||
/* Console output can be slow, disable log calls to speed up fuzzing. */
|
||||
return;
|
||||
}
|
||||
fflush(dumper->output_file);
|
||||
g_error("Bad json_dumper state: %s; change=%d type=%d depth=%d prev/curr/next state=%02x %02x %02x",
|
||||
what, change, type, dumper->current_depth, states[0], states[1], states[2]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue