From: Jonathan Rajotte Date: Wed, 7 Feb 2018 22:52:05 +0000 (-0500) Subject: Propagate error from packet_seek in case of truncated packet X-Git-Tag: v1.5.5~1 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=db8c6984d42833647909c099e272dfd364053eba;hp=db8c6984d42833647909c099e272dfd364053eba Propagate error from packet_seek in case of truncated packet Report the error all the way up allowing users/scripts to perform error detection and act on it. Print to stderr the truncated packet information for easier identification. Introduce bt_packet_seek_error enum for specific error handling. Use the ERANGE errno for error propagation inside bt_iter_next and ctf_read_event. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau ---